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