]> git.ipfire.org Git - thirdparty/squid.git/blob - Makefile.am
MinGW-w64: enable native file locking (#1358)
[thirdparty/squid.git] / Makefile.am
1 ## Copyright (C) 1996-2023 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
10 SUBDIRS = compat contrib doc errors icons
11
12 if ENABLE_LOADABLE_MODULES
13 SUBDIRS += libltdl
14 endif
15
16 SUBDIRS += lib scripts src tools test-suite
17
18 DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
19 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
20
21 dist-hook:
22 @ for subdir in include; do \
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; \
29 rm -f $(distdir)/$$subdir/autoconf.h; \
30 fi; \
31 done
32
33 EXTRA_DIST = \
34 ChangeLog \
35 CONTRIBUTORS \
36 COPYING \
37 CREDITS \
38 INSTALL \
39 QUICKSTART \
40 README \
41 SPONSORS \
42 bootstrap.sh \
43 po4a.conf
44
45 install-pinger:
46 chown root $(DESTDIR)$(DEFAULT_PINGER)
47 chmod 4711 $(DESTDIR)$(DEFAULT_PINGER)
48
49 ## hack to insert the test first, before building recursive child directories
50 check: have-cppunit check-recursive
51
52 have-cppunit:
53 @if test "$(LIBCPPUNIT_CFLAGS)$(LIBCPPUNIT_LIBS)" = "" ; then \
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