Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/libpainter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-08-18 02:57:42 +0300
committerJay Sorg <jay.sorg@gmail.com>2016-08-18 02:57:42 +0300
commit0fbf138f01917780daaaf80d3e1226af39026aa2 (patch)
treed029678a1fd03ede9475175546d2c398cf855732
parent583b72b0b6a226019fea20576b39023801cd80c0 (diff)
added --enable-tests configure option
-rw-r--r--Makefile.am9
-rw-r--r--configure.ac6
-rw-r--r--include/Makefile.am4
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
+