]> git.ipfire.org Git - thirdparty/squid.git/blob - Makefile.am
Cleanup: make loadable modules build variables follow Squid3 coding guidelines
[thirdparty/squid.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3
4 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign
5 DIST_SUBDIRS = compat lib libltdl scripts icons errors contrib doc helpers src test-suite tools
6 SUBDIRS = compat lib
7 if ENABLE_LOADABLE_MODULES
8 SUBDIRS += libltdl
9 endif
10 SUBDIRS += scripts icons errors doc helpers src tools test-suite
11
12 DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
13 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
14
15 dist-hook:
16 @ for subdir in include; do \
17 if test "$$subdir" = .; then :; else \
18 test -d $(distdir)/$$subdir \
19 || mkdir $(distdir)/$$subdir \
20 || exit 1; \
21 cp -p $(srcdir)/$$subdir/*.h $(distdir)/$$subdir \
22 || exit 1; \
23 rm -f $(distdir)/$$subdir/autoconf.h; \
24 fi; \
25 done
26 @if [ -f $(top_srcdir)/RELEASENOTES.html ]; then \
27 cp -p $(top_srcdir)/RELEASENOTES.html $(distdir)/RELEASENOTES.html; \
28 else \
29 notes=`ls -1rt $(top_srcdir)/doc/release-notes/*.html | head -1`; \
30 if [ -f $$notes ]; then \
31 cp $$notes $(distdir)/RELEASENOTES.html; \
32 else \
33 touch $(distdir)/RELEASENOTES.html; \
34 fi; \
35 fi
36
37 EXTRA_DIST = \
38 ChangeLog \
39 CONTRIBUTORS \
40 COPYING \
41 COPYRIGHT \
42 CREDITS \
43 INSTALL \
44 QUICKSTART \
45 README \
46 SPONSORS \
47 bootstrap.sh \
48 po4a.conf
49
50 install-pinger:
51 chown root $(DESTDIR)$(DEFAULT_PINGER)
52 chmod 4711 $(DESTDIR)$(DEFAULT_PINGER)
53
54 ## hack to insert the test first, before building recursive child directories
55 check: have-cppunit check-recursive
56
57 have-cppunit:
58 @if test "$(SQUID_CPPUNIT_INC)$(SQUID_CPPUNIT_LA)$(SQUID_CPPUNIT_LIBS)" = "" ; then \
59 echo "FATAL: 'make check' requires cppunit and cppunit development packages. They do not appear to be installed." ; \
60 exit 1 ; \
61 fi
62
63 .PHONY: have-cppunit