]> git.ipfire.org Git - thirdparty/squid.git/blob - Makefile.am
Fix GCC 4.9 build after rev.14893
[thirdparty/squid.git] / Makefile.am
1 ## Copyright (C) 1996-2016 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6 ##
7
8 AUTOMAKE_OPTIONS = dist-bzip2 1.5 foreign
9 DIST_SUBDIRS = compat lib libltdl scripts icons errors contrib doc src test-suite tools
10 SUBDIRS = compat lib
11 if ENABLE_LOADABLE_MODULES
12 SUBDIRS += libltdl
13 endif
14 SUBDIRS += scripts icons errors doc src tools test-suite
15
16 DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
17 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
18
19 dist-hook:
20 @ for subdir in include; do \
21 if test "$$subdir" = .; then :; else \
22 test -d $(distdir)/$$subdir \
23 || mkdir $(distdir)/$$subdir \
24 || exit 1; \
25 cp -p $(srcdir)/$$subdir/*.h $(distdir)/$$subdir \
26 || exit 1; \
27 rm -f $(distdir)/$$subdir/autoconf.h; \
28 fi; \
29 done
30
31 EXTRA_DIST = \
32 ChangeLog \
33 CONTRIBUTORS \
34 COPYING \
35 CREDITS \
36 INSTALL \
37 QUICKSTART \
38 README \
39 SPONSORS \
40 bootstrap.sh \
41 po4a.conf
42
43 install-pinger:
44 chown root $(DESTDIR)$(DEFAULT_PINGER)
45 chmod 4711 $(DESTDIR)$(DEFAULT_PINGER)
46
47 ## hack to insert the test first, before building recursive child directories
48 check: have-cppunit check-recursive
49
50 have-cppunit:
51 @if test "$(LIBCPPUNIT_CFLAGS)$(LIBCPPUNIT_LIBS)" = "" ; then \
52 echo "FATAL: 'make check' requires cppunit and cppunit development packages. They do not appear to be installed." ; \
53 exit 1 ; \
54 fi
55
56 .PHONY: have-cppunit