]>
Commit | Line | Data |
---|---|---|
4ac4a490 | 1 | ## Copyright (C) 1996-2017 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 | |
f4405bd3 | 8 | AUTOMAKE_OPTIONS = dist-bzip2 1.5 foreign |
490a930b | 9 | DIST_SUBDIRS = compat lib libltdl scripts icons errors contrib doc src test-suite tools |
82609577 | 10 | SUBDIRS = compat lib |
cb5569cd | 11 | if ENABLE_LOADABLE_MODULES |
660faa02 AJ |
12 | SUBDIRS += libltdl |
13 | endif | |
490a930b | 14 | SUBDIRS += scripts icons errors doc 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 | |
30 | ||
030dfe0d | 31 | EXTRA_DIST = \ |
32 | ChangeLog \ | |
33 | CONTRIBUTORS \ | |
34 | COPYING \ | |
030dfe0d | 35 | CREDITS \ |
36 | INSTALL \ | |
37 | QUICKSTART \ | |
38 | README \ | |
bdb40e33 | 39 | SPONSORS \ |
ef8d9073 AJ |
40 | bootstrap.sh \ |
41 | po4a.conf | |
e4e1e555 | 42 | |
43 | install-pinger: | |
9b1c484b AJ |
44 | chown root $(DESTDIR)$(DEFAULT_PINGER) |
45 | chmod 4711 $(DESTDIR)$(DEFAULT_PINGER) | |
0c1cca5b AJ |
46 | |
47 | ## hack to insert the test first, before building recursive child directories | |
48 | check: have-cppunit check-recursive | |
49 | ||
50 | have-cppunit: | |
d93bf055 | 51 | @if test "$(LIBCPPUNIT_CFLAGS)$(LIBCPPUNIT_LIBS)" = "" ; then \ |
0c1cca5b AJ |
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 |