]>
Commit | Line | Data |
---|---|---|
a2794549 | 1 | ## Process this file with automake to produce Makefile.in |
2 | # | |
a2794549 | 3 | |
109fbe1a | 4 | AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign |
313e5cad | 5 | DIST_SUBDIRS = compat lib libltdl snmplib scripts src icons errors contrib doc helpers test-suite tools |
a0c10b99 | 6 | SUBDIRS = compat lib $(makesnmplib) |
313e5cad AJ |
7 | if USE_LOADABLE_MODULES |
8 | SUBDIRS += libltdl | |
9 | endif | |
10 | SUBDIRS += scripts src icons errors doc helpers test-suite tools | |
a2794549 | 11 | |
a2794549 | 12 | DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* |
831eb43f | 13 | DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'` |
a2794549 | 14 | |
15 | dist-hook: | |
cdc4f5f9 | 16 | @ for subdir in include; do \ |
a2794549 | 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; \ | |
7596d469 | 23 | rm -f $(distdir)/$$subdir/autoconf.h; \ |
a2794549 | 24 | fi; \ |
25 | done | |
5dc5d1f5 | 26 | @if [ -f $(top_srcdir)/RELEASENOTES.html ]; then \ |
27 | cp -p $(top_srcdir)/RELEASENOTES.html $(distdir)/RELEASENOTES.html; \ | |
28 | else \ | |
2250926b AJ |
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; \ | |
5dc5d1f5 | 35 | fi |
a2794549 | 36 | |
030dfe0d | 37 | EXTRA_DIST = \ |
38 | ChangeLog \ | |
39 | CONTRIBUTORS \ | |
40 | COPYING \ | |
41 | COPYRIGHT \ | |
42 | CREDITS \ | |
43 | INSTALL \ | |
44 | QUICKSTART \ | |
45 | README \ | |
cc9923e4 | 46 | SPONSORS \ |
02d6195b | 47 | bootstrap.sh |
e4e1e555 | 48 | |
49 | install-pinger: | |
320c1dac AJ |
50 | chown root $(DESTDIR)$(DEFAULT_PINGER) |
51 | chmod 4711 $(DESTDIR)$(DEFAULT_PINGER) | |
a95ffad3 AJ |
52 | |
53 | ## hack to insert the test first, before building recursive child directories | |
54 | check: have-cppunit check-recursive | |
55 | ||
56 | have-cppunit: | |
9e3ab14a | 57 | @if test "$(SQUID_CPPUNIT_INC)$(SQUID_CPPUNIT_LA)$(SQUID_CPPUNIT_LIBS)" = "" ; then \ |
a95ffad3 AJ |
58 | echo "FATAL: 'make check' requires cppunit and cppunit development packages. They do not appear to be installed." ; \ |
59 | exit 1 ; \ | |
60 | fi | |
61 | ||
62 | .PHONY: have-cppunit |