]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2462: make check should tell when cppunit is missing
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Aug 2009 10:13:38 +0000 (22:13 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 2 Aug 2009 10:13:38 +0000 (22:13 +1200)
Makefile.am

index 811c9f7e6d6190d4b335124cbc182bdc5556ec3b..63fc50f76199aa9467ceb6e30f0d465e872d8f2f 100644 (file)
@@ -45,3 +45,14 @@ install-pinger:
 
 all-am:
        @echo "Build Successful."
+
+## hack to insert the test first, before building recursive child directories
+check: have-cppunit check-recursive
+
+have-cppunit:
+       @if test "@SQUID_CPPUNIT_INC@@SQUID_CPPUNIT_LA@@SQUID_CPPUNIT_LIBS@" = "" ; then \
+               echo "FATAL: 'make check' requires cppunit and cppunit development packages. They do not appear to be installed." ; \
+               exit 1 ; \
+       fi
+
+.PHONY: have-cppunit