From 0fbf138f01917780daaaf80d3e1226af39026aa2 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Wed, 17 Aug 2016 16:57:42 -0700 Subject: added --enable-tests configure option --- Makefile.am | 9 ++++++++- configure.ac | 6 ++++++ include/Makefile.am | 4 ++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 include/Makefile.am diff --git a/Makefile.am b/Makefile.am index dad8f6a..eb804d7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,13 @@ EXTRA_DIST = bootstrap readme.txt +EXTRA_DIRS = + +if PT_TESTS +EXTRA_DIRS += tests +endif + SUBDIRS = \ src \ - tests + include \ + $(EXTRA_DIRS) diff --git a/configure.ac b/configure.ac index b0f1964..e93643d 100644 --- a/configure.ac +++ b/configure.ac @@ -13,12 +13,18 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AM_CONDITIONAL(GOT_PREFIX, test "x${prefix}" != "xNONE"]) +AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests], + [Build install tests (default: no)]), + [], [enable_tests=no]) +AM_CONDITIONAL(PT_TESTS, [test x$enable_tests = xyes]) + if test "x${prefix}" = "xNONE" ; then sysconfdir="/etc"; fi AC_CONFIG_FILES([Makefile src/Makefile + include/Makefile tests/Makefile ]) diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 0000000..e5a1a24 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,4 @@ +EXTRA_DIST = + +include_HEADERS = painter.h + -- cgit v1.2.3