]>
Commit | Line | Data |
---|---|---|
b8ae064d | 1 | ## Copyright (C) 1996-2023 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 |
ec376e13 AJ |
9 | |
10 | SUBDIRS = compat contrib doc errors icons | |
11 | ||
cb5569cd | 12 | if ENABLE_LOADABLE_MODULES |
660faa02 AJ |
13 | SUBDIRS += libltdl |
14 | endif | |
ec376e13 AJ |
15 | |
16 | SUBDIRS += lib scripts src tools test-suite | |
a2794549 | 17 | |
a2794549 | 18 | DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* |
957eb8d1 | 19 | DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'` |
a2794549 | 20 | |
21 | dist-hook: | |
cdc4f5f9 | 22 | @ for subdir in include; do \ |
a2794549 | 23 | if test "$$subdir" = .; then :; else \ |
24 | test -d $(distdir)/$$subdir \ | |
25 | || mkdir $(distdir)/$$subdir \ | |
26 | || exit 1; \ | |
27 | cp -p $(srcdir)/$$subdir/*.h $(distdir)/$$subdir \ | |
28 | || exit 1; \ | |
7596d469 | 29 | rm -f $(distdir)/$$subdir/autoconf.h; \ |
a2794549 | 30 | fi; \ |
31 | done | |
32 | ||
030dfe0d | 33 | EXTRA_DIST = \ |
34 | ChangeLog \ | |
35 | CONTRIBUTORS \ | |
36 | COPYING \ | |
030dfe0d | 37 | CREDITS \ |
38 | INSTALL \ | |
39 | QUICKSTART \ | |
40 | README \ | |
bdb40e33 | 41 | SPONSORS \ |
ef8d9073 AJ |
42 | bootstrap.sh \ |
43 | po4a.conf | |
e4e1e555 | 44 | |
45 | install-pinger: | |
9b1c484b AJ |
46 | chown root $(DESTDIR)$(DEFAULT_PINGER) |
47 | chmod 4711 $(DESTDIR)$(DEFAULT_PINGER) | |
0c1cca5b AJ |
48 | |
49 | ## hack to insert the test first, before building recursive child directories | |
50 | check: have-cppunit check-recursive | |
51 | ||
52 | have-cppunit: | |
d93bf055 | 53 | @if test "$(LIBCPPUNIT_CFLAGS)$(LIBCPPUNIT_LIBS)" = "" ; then \ |
0c1cca5b AJ |
54 | echo "FATAL: 'make check' requires cppunit and cppunit development packages. They do not appear to be installed." ; \ |
55 | exit 1 ; \ | |
56 | fi | |
57 | ||
58 | .PHONY: have-cppunit |