]>
Commit | Line | Data |
---|---|---|
bde978a6 | 1 | ## Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
a151895d AJ |
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 | ## | |
a2794549 | 7 | |
109fbe1a | 8 | AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign |
82609577 FC |
9 | DIST_SUBDIRS = compat lib libltdl scripts icons errors contrib doc helpers src test-suite tools |
10 | SUBDIRS = compat lib | |
cb5569cd | 11 | if ENABLE_LOADABLE_MODULES |
660faa02 AJ |
12 | SUBDIRS += libltdl |
13 | endif | |
25f98340 | 14 | SUBDIRS += scripts icons errors doc helpers src tools test-suite |
a2794549 | 15 | |
a2794549 | 16 | DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* |
957eb8d1 | 17 | DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'` |
a2794549 | 18 | |
19 | dist-hook: | |
cdc4f5f9 | 20 | @ for subdir in include; do \ |
a2794549 | 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; \ | |
7596d469 | 27 | rm -f $(distdir)/$$subdir/autoconf.h; \ |
a2794549 | 28 | fi; \ |
29 | done | |
5dc5d1f5 | 30 | @if [ -f $(top_srcdir)/RELEASENOTES.html ]; then \ |
31 | cp -p $(top_srcdir)/RELEASENOTES.html $(distdir)/RELEASENOTES.html; \ | |
32 | else \ | |
8328114d | 33 | notes=`ls -1rt $(top_srcdir)/doc/release-notes/*.html | head -1`; \ |
b1410948 AJ |
34 | if [ -f $$notes ]; then \ |
35 | cp $$notes $(distdir)/RELEASENOTES.html; \ | |
8328114d AJ |
36 | else \ |
37 | touch $(distdir)/RELEASENOTES.html; \ | |
38 | fi; \ | |
5dc5d1f5 | 39 | fi |
a2794549 | 40 | |
030dfe0d | 41 | EXTRA_DIST = \ |
42 | ChangeLog \ | |
43 | CONTRIBUTORS \ | |
44 | COPYING \ | |
030dfe0d | 45 | CREDITS \ |
46 | INSTALL \ | |
47 | QUICKSTART \ | |
48 | README \ | |
bdb40e33 | 49 | SPONSORS \ |
ef8d9073 AJ |
50 | bootstrap.sh \ |
51 | po4a.conf | |
e4e1e555 | 52 | |
53 | install-pinger: | |
9b1c484b AJ |
54 | chown root $(DESTDIR)$(DEFAULT_PINGER) |
55 | chmod 4711 $(DESTDIR)$(DEFAULT_PINGER) | |
0c1cca5b AJ |
56 | |
57 | ## hack to insert the test first, before building recursive child directories | |
58 | check: have-cppunit check-recursive | |
59 | ||
60 | have-cppunit: | |
3ae8895c | 61 | @if test "$(SQUID_CPPUNIT_INC)$(SQUID_CPPUNIT_LA)$(SQUID_CPPUNIT_LIBS)" = "" ; then \ |
0c1cca5b AJ |
62 | echo "FATAL: 'make check' requires cppunit and cppunit development packages. They do not appear to be installed." ; \ |
63 | exit 1 ; \ | |
64 | fi | |
65 | ||
66 | .PHONY: have-cppunit |