2003-03-11 04:04:52 +08:00
|
|
|
# Packaging files
|
2008-03-31 08:01:29 +08:00
|
|
|
PACKAGING_FILES = \
|
|
|
|
packaging/fedora/tinyproxy.init \
|
|
|
|
packaging/fedora/tinyproxy.spec
|
2003-03-11 04:04:52 +08:00
|
|
|
|
2004-08-25 00:39:29 +08:00
|
|
|
# The following files are required for the build process
|
|
|
|
CONFIG_FILES = \
|
|
|
|
config/config.guess config/config.sub \
|
|
|
|
config/ltmain.sh config/install-sh config/missing config/mkinstalldirs \
|
2004-08-25 02:41:18 +08:00
|
|
|
config/typecheck.m4 config/argenable.m4
|
2004-08-25 00:39:29 +08:00
|
|
|
|
2008-03-31 07:48:47 +08:00
|
|
|
EXTRA_DIST = $(CONFIG_FILES) TODO $(PACKAGING_FILES) bootstrap
|
2000-02-17 01:32:49 +08:00
|
|
|
SUBDIRS = src doc
|
2002-05-02 12:44:03 +08:00
|
|
|
|
2003-05-11 07:16:45 +08:00
|
|
|
install-data-local: tinyproxy-configure-file tinyproxy-html-files
|
|
|
|
|
|
|
|
# Install the configuration file if it doesn't already exist
|
|
|
|
tinyproxy-configure-file:
|
2002-05-03 01:35:27 +08:00
|
|
|
$(mkinstalldirs) $(DESTDIR)@TINYPROXY_CONFIG_DIR@
|
2002-05-03 02:12:32 +08:00
|
|
|
$(INSTALL) -m 600 $(srcdir)/doc/tinyproxy.conf \
|
2002-05-03 01:35:27 +08:00
|
|
|
$(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@-dist
|
2002-05-11 03:53:03 +08:00
|
|
|
test -f $(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@ \
|
|
|
|
|| $(INSTALL) -m 600 $(srcdir)/doc/tinyproxy.conf \
|
2002-05-03 01:35:27 +08:00
|
|
|
$(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@
|
|
|
|
@echo ""
|
|
|
|
@echo "A configuration file has been copied to:"
|
|
|
|
@echo ""
|
|
|
|
@echo "@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@-dist"
|
|
|
|
@echo ""
|
|
|
|
@echo "You will need to rename this file to:"
|
|
|
|
@echo ""
|
|
|
|
@echo "@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@"
|
|
|
|
@echo ""
|
|
|
|
@echo "and modify the values to suit your local system."
|
|
|
|
@echo ""
|
|
|
|
@echo "All the configuration directives are commented in the file, so"
|
|
|
|
@echo "you should not have any problems configuring your system."
|
2003-05-11 07:16:45 +08:00
|
|
|
@echo ""
|
|
|
|
|
|
|
|
# Install the HTML files
|
|
|
|
tinyproxy-html-files:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(datadir)/tinyproxy
|
|
|
|
|
|
|
|
for file in debug default stats; do \
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/doc/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html.dist ; \
|
|
|
|
test -f $(DESTDIR)$(datadir)/tinyproxy/$$file.html || \
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/doc/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html ; \
|
|
|
|
done
|
|
|
|
$(INSTALL) -m 644 $(srcdir)/doc/HTML_VARIABLES $(DESTDIR)$(datadir)/tinyproxy/HTML_VARIABLES
|