diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2016-08-18 02:57:42 +0300 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2016-08-18 02:57:42 +0300 |
commit | 0fbf138f01917780daaaf80d3e1226af39026aa2 (patch) | |
tree | d029678a1fd03ede9475175546d2c398cf855732 | |
parent | 583b72b0b6a226019fea20576b39023801cd80c0 (diff) |
added --enable-tests configure option
-rw-r--r-- | Makefile.am | 9 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | include/Makefile.am | 4 |
3 files changed, 18 insertions, 1 deletions
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 + |