]> git.ipfire.org Git - thirdparty/squid.git/blob - tools/Makefile.am
Boilerplate: update copyright blurbs for Squid tools
[thirdparty/squid.git] / tools / Makefile.am
1 ## Copyright (C) 1996-2014 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 include $(top_srcdir)/src/Common.am
9
10 AUTOMAKE_OPTIONS = subdir-objects
11
12 ## we need our local files too (but avoid -I. at all costs)
13 AM_CPPFLAGS += -I$(srcdir)
14
15 SUBDIRS = purge squidclient
16 EXTRA_DIST =
17 man_MANS =
18 DISTCLEANFILES =
19
20 LDADD = \
21 $(top_builddir)/src/ip/libip.la \
22 $(top_builddir)/lib/libmiscencoding.la \
23 $(top_builddir)/lib/libmiscutil.la \
24 $(COMPAT_LIB) \
25 $(NETTLELIB) \
26 $(KRB5LIBS) \
27 $(XTRA_LIBS)
28
29 include $(top_srcdir)/doc/manuals/Substitute.am
30
31 ## Several files need to be shared but we cannot depend on the other
32 ## directories to be built.
33 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
34 cp $(top_srcdir)/test-suite/test_tools.cc .
35
36 stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc
37 cp $(top_srcdir)/src/tests/stub_debug.cc .
38
39 time.cc: $(top_srcdir)/src/time.cc
40 cp $(top_srcdir)/src/time.cc .
41
42 # stock tools for unit tests - library independent versions of dlink_list
43 # etc.
44 # globals.cc is needed by test_tools.cc.
45 # Neither of these should be disted from here.
46 TESTSOURCES= test_tools.cc
47 CLEANFILES += test_tools.cc stub_debug.cc time.cc
48
49 ## ##### helper-mux #####
50
51 libexec_SCRIPTS = helper-mux.pl
52 EXTRA_DIST += helper-mux.pl helper-mux.README
53
54 ## Test Scripts
55 EXTRA_DIST += helper-ok-dying.pl helper-ok.pl
56
57
58 ## ##### cachemgr.cgi #####
59
60 DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
61
62 libexec_PROGRAMS = cachemgr$(CGIEXT)
63
64 cachemgr__CGIEXT__SOURCES = cachemgr.cc \
65 stub_debug.cc \
66 test_tools.cc \
67 time.cc
68
69 cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
70
71 EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in
72 CLEANFILES += cachemgr.cgi.8
73 man_MANS += cachemgr.cgi.8
74
75 cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
76 $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
77
78
79
80 ## Shared
81
82 install-data-local:
83 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
84 @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \
85 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \
86 else \
87 echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \
88 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \
89 fi
90
91 uninstall-local:
92 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)
93 $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default