2003-04-30 Havoc Pennington <hp@redhat.com>
authorHavoc Pennington <hp@redhat.com>
Wed, 30 Apr 2003 21:15:44 +0000 (21:15 +0000)
committerHavoc Pennington <hp@redhat.com>
Wed, 30 Apr 2003 21:15:44 +0000 (21:15 +0000)
* Makefile.am: add a check-local that complains if you didn't
configure with --enable-tests

ChangeLog
Makefile.am
bus/Makefile.am
dbus/Makefile.am

index 09c9e37..a986844 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-30  Havoc Pennington  <hp@redhat.com>
+
+       * Makefile.am: add a check-local that complains if you didn't
+       configure with --enable-tests
+
 2003-04-29  Havoc Pennington  <hp@redhat.com>
 
        * glib/dbus-gmain.c: docs cleanups
index 2bf9a50..91c976e 100644 (file)
@@ -24,6 +24,14 @@ EXTRA_DIST =                 \
 
 all-local: Doxyfile
 
+if DBUS_BUILD_TESTS
+### nothing
+else
+check-local:
+       echo "You have to configure with --enable-tests to make check" ; \
+       exit 1
+endif
+
 if DBUS_GCOV_ENABLED
 clean-gcov:
        find -name "*.da" -o -name "*.gcov" | xargs rm || true
index 823d9cc..9836ffd 100644 (file)
@@ -102,4 +102,12 @@ endif
 
 #### Extra dist 
 
-EXTRA_DIST=$(CONFIG_IN_FILES) $(SCRIPT_IN_FILES)
\ No newline at end of file
+EXTRA_DIST=$(CONFIG_IN_FILES) $(SCRIPT_IN_FILES)
+
+if DBUS_BUILD_TESTS
+### nothing
+else
+check-local:
+       echo "You have to configure with --enable-tests to make check" ; \
+       exit 1
+endif
index 8dcb79d..3e1e0be 100644 (file)
@@ -154,3 +154,11 @@ dbus_test_LDADD= $(DBUS_CLIENT_LIBS) libdbus-1.la
 ## mop up the gcov files
 clean-local:
        /bin/rm *.bb *.bbg *.da *.gcov || true
+
+if DBUS_BUILD_TESTS
+### nothing
+else
+check-local:
+       echo "You have to configure with --enable-tests to make check" ; \
+       exit 1
+endif