summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac2
-rw-r--r--data/Makefile.am2
-rw-r--r--data/templates/Makefile.am7
-rw-r--r--data/templates/debug.html (renamed from doc/debug.html)0
-rw-r--r--data/templates/default.html (renamed from doc/default.html)0
-rw-r--r--data/templates/stats.html (renamed from doc/stats.html)0
-rw-r--r--doc/Makefile.am9
8 files changed, 16 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am
index a71d46b..db684cf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,7 @@ CONFIG_FILES = \
m4macros/typecheck.m4 m4macros/argenable.m4
EXTRA_DIST = $(CONFIG_FILES) TODO autogen.sh
-SUBDIRS = src doc packaging
+SUBDIRS = src data doc packaging
install-data-local: tinyproxy-configure-file tinyproxy-html-files
@@ -38,8 +38,8 @@ 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 ; \
+ $(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)/doc/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html ; \
+ $(INSTALL) -m 644 $(srcdir)/data/templates/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html ; \
done
$(INSTALL) -m 644 $(srcdir)/doc/HTML_VARIABLES $(DESTDIR)$(datadir)/tinyproxy/HTML_VARIABLES
diff --git a/configure.ac b/configure.ac
index 7164905..fa969ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -326,6 +326,8 @@ AM_CONDITIONAL(HAVE_A2X, test "x$A2X" != "xno")
AC_CONFIG_FILES([
Makefile
src/Makefile
+data/Makefile
+data/templates/Makefile
doc/Makefile
doc/man8/Makefile
packaging/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..4a03cc5
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = \
+ templates
diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am
new file mode 100644
index 0000000..5c2f1be
--- /dev/null
+++ b/data/templates/Makefile.am
@@ -0,0 +1,7 @@
+TEMPLATES = \
+ debug.html \
+ default.html \
+ stats.html
+
+EXTRA_DIST = \
+ $(TEMPLATES)
diff --git a/doc/debug.html b/data/templates/debug.html
index 6ee3367..6ee3367 100644
--- a/doc/debug.html
+++ b/data/templates/debug.html
diff --git a/doc/default.html b/data/templates/default.html
index 67354b7..67354b7 100644
--- a/doc/default.html
+++ b/data/templates/default.html
diff --git a/doc/stats.html b/data/templates/stats.html
index 7179859..7179859 100644
--- a/doc/stats.html
+++ b/data/templates/stats.html
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 6cbe3cc..ade0939 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,15 +1,10 @@
SUBDIRS = \
man8
-TEMPLATES = \
- debug.html \
- default.html \
- stats.html
-
EXTRA_DIST = \
tinyproxy.conf \
HTML_VARIABLES \
HTTP_ERROR_CODES \
RFC_INFO \
- filter-howto.txt \
- $(TEMPLATES)
+ filter-howto.txt
+