From: Amos Jeffries Date: Sat, 1 Aug 2009 12:20:03 +0000 (+1200) Subject: Bug 2462: make check should tell when cppunit is missing X-Git-Tag: SQUID_3_2_0_1~826 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c1cca5b6f6f614ac2e478080202ea404fce970d;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