data: Cleanup installation of templates
This commit is contained in:
parent
9d7bd43d8e
commit
7b4f67ecef
12
Makefile.am
12
Makefile.am
@ -8,15 +8,3 @@ CONFIG_FILES = \
|
||||
EXTRA_DIST = $(CONFIG_FILES) TODO autogen.sh
|
||||
SUBDIRS = src data etc doc packaging
|
||||
|
||||
install-data-local: tinyproxy-html-files
|
||||
|
||||
# Install the HTML files
|
||||
tinyproxy-html-files:
|
||||
$(mkinstalldirs) $(DESTDIR)$(datadir)/tinyproxy
|
||||
|
||||
for file in debug default stats; do \
|
||||
$(INSTALL) -m 644 $(srcdir)/data/templates/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html.dist ; \
|
||||
test -f $(DESTDIR)$(datadir)/tinyproxy/$$file.html || \
|
||||
$(INSTALL) -m 644 $(srcdir)/data/templates/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html ; \
|
||||
done
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
templatesdir = $(pkgdatadir)
|
||||
|
||||
TEMPLATES = \
|
||||
debug.html \
|
||||
default.html \
|
||||
stats.html
|
||||
|
||||
templates_DATA = \
|
||||
$(TEMPLATES)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(TEMPLATES)
|
||||
|
Loading…
Reference in New Issue
Block a user