From 0c1cca5b6f6f614ac2e478080202ea404fce970d Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 2 Aug 2009 00:20:03 +1200 Subject: [PATCH] Bug 2462: make check should tell when cppunit is missing --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.47.2