From: Amos Jeffries Date: Sun, 2 Aug 2009 10:13:38 +0000 (+1200) Subject: Bug 2462: make check should tell when cppunit is missing X-Git-Tag: SQUID_3_0_STABLE18~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3e096c2dc73d7bfce2a2b983e6d6f9c4ae27b2f;p=thirdparty%2Fsquid.git Bug 2462: make check should tell when cppunit is missing --- diff --git a/Makefile.am b/Makefile.am index 811c9f7e6d..63fc50f761 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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