[nautilus-actions] Tests: do not build test programs in release mode



commit edefbf7f7058f618cb8e87c1a4758e026dad69ae
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Mar 14 06:52:28 2011 +0100

    Tests: do not build test programs in release mode
    
    Rationale: these programs are only relevant to the maintainer, which builds and runs them
    in order to check such or such feature or proof of concept. These are not relevant in a
    release.

 ChangeLog            |    4 ++++
 src/test/Makefile.am |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1832e56..eeb459b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-14 Pierre Wieser <pwieser trychlos org>
+
+	* src/test/Makefile.am: Do not build test programs in release mode.
+
 2011-03-13 Pierre Wieser <pwieser trychlos org>
 
 	* configure.ac: Post-release version bump.
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index d297d48..5f49c55 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -26,6 +26,11 @@
 #   Pierre Wieser <pwieser trychlos org>
 #   ... and many others (see AUTHORS)
 
+# Test programs are only relevant for the maintainer and his own tests
+# Do not build them in a release
+
+if NA_MAINTAINER_MODE
+
 noinst_PROGRAMS = \
 	test-reader											\
 	test-iface											\
@@ -117,3 +122,6 @@ test_virtuals_without_test_SOURCES = \
 test_virtuals_without_test_LDADD = \
 	$(NAUTILUS_ACTIONS_LIBS)							\
 	$(NULL)
+
+endif
+#if NA_MAINTAINER_MODE



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]