Added support for installing the HTML error files used by tinyproxy.

This commit is contained in:
Robert James Kaes 2003-05-10 23:16:45 +00:00
parent 5e1303ecd1
commit 2e9f27769d

View File

@ -11,7 +11,10 @@ PACKAGING = $(REDHAT)
EXTRA_DIST = TODO $(PACKAGING) EXTRA_DIST = TODO $(PACKAGING)
SUBDIRS = src doc SUBDIRS = src doc
install-data-local: install-data-local: tinyproxy-configure-file tinyproxy-html-files
# Install the configuration file if it doesn't already exist
tinyproxy-configure-file:
$(mkinstalldirs) $(DESTDIR)@TINYPROXY_CONFIG_DIR@ $(mkinstalldirs) $(DESTDIR)@TINYPROXY_CONFIG_DIR@
$(INSTALL) -m 600 $(srcdir)/doc/tinyproxy.conf \ $(INSTALL) -m 600 $(srcdir)/doc/tinyproxy.conf \
$(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@-dist $(DESTDIR)@TINYPROXY_CONFIG_DIR@/@TINYPROXY_CONFIG_FILE@-dist
@ -31,4 +34,16 @@ install-data-local:
@echo "" @echo ""
@echo "All the configuration directives are commented in the file, so" @echo "All the configuration directives are commented in the file, so"
@echo "you should not have any problems configuring your system." @echo "you should not have any problems configuring your system."
@echo "" @echo ""
# Install the HTML files
tinyproxy-html-files:
$(mkinstalldirs) $(DESTDIR)$(datadir)/tinyproxy
test -d $(datadir)/tinyproxy || mkdir $(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