From 42d47c5f805b61892456b17a0e5b2632d73745bd Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Wed, 30 Apr 2003 21:15:44 +0000 Subject: 2003-04-30 Havoc Pennington * Makefile.am: add a check-local that complains if you didn't configure with --enable-tests --- ChangeLog | 5 +++++ Makefile.am | 8 ++++++++ bus/Makefile.am | 10 +++++++++- dbus/Makefile.am | 8 ++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 09c9e371..a9868449 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-30 Havoc Pennington + + * Makefile.am: add a check-local that complains if you didn't + configure with --enable-tests + 2003-04-29 Havoc Pennington * glib/dbus-gmain.c: docs cleanups diff --git a/Makefile.am b/Makefile.am index 2bf9a509..91c976e8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/bus/Makefile.am b/bus/Makefile.am index 823d9cc4..9836ffd3 100644 --- a/bus/Makefile.am +++ b/bus/Makefile.am @@ -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 diff --git a/dbus/Makefile.am b/dbus/Makefile.am index 8dcb79dd..3e1e0bea 100644 --- a/dbus/Makefile.am +++ b/dbus/Makefile.am @@ -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 -- cgit