Skip to content

Commit 7b4f67e

Browse files
committed
data: Cleanup installation of templates
1 parent 9d7bd43 commit 7b4f67e

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

Makefile.am

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,3 @@ CONFIG_FILES = \
88
EXTRA_DIST = $(CONFIG_FILES) TODO autogen.sh
99
SUBDIRS = src data etc doc packaging
1010

11-
install-data-local: tinyproxy-html-files
12-
13-
# Install the HTML files
14-
tinyproxy-html-files:
15-
$(mkinstalldirs) $(DESTDIR)$(datadir)/tinyproxy
16-
17-
for file in debug default stats; do \
18-
$(INSTALL) -m 644 $(srcdir)/data/templates/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html.dist ; \
19-
test -f $(DESTDIR)$(datadir)/tinyproxy/$$file.html || \
20-
$(INSTALL) -m 644 $(srcdir)/data/templates/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html ; \
21-
done
22-

data/templates/Makefile.am

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
templatesdir = $(pkgdatadir)
2+
13
TEMPLATES = \
24
debug.html \
35
default.html \
46
stats.html
57

8+
templates_DATA = \
9+
$(TEMPLATES)
10+
611
EXTRA_DIST = \
712
$(TEMPLATES)

0 commit comments

Comments
 (0)