From: Amos Jeffries Date: Sun, 2 Aug 2009 09:49:53 +0000 (+1200) Subject: Bug 2462: make check should tell when cppunit is missing X-Git-Tag: SQUID_3_1_0_13~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a95ffad35c9e1ee792f21898e97bba3dbb96ac6c;p=thirdparty%2Fsquid.git Bug 2462: make check should tell when cppunit is missing --- diff --git a/Makefile.am b/Makefile.am index 061ed31288..1a2a161c61 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,3 +40,14 @@ EXTRA_DIST = \ install-pinger: chown root $(DESTDIR)$(DEFAULT_PINGER) chmod 4711 $(DESTDIR)$(DEFAULT_PINGER) + +## 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