source: squid-ssl/trunk/fuentes/tools/Makefile.am @ 5496

Last change on this file since 5496 was 5496, checked in by Juanma, 22 months ago

Initial release

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