From f3e06436b5a6081e71c6308ca136e9ff1fa1ebef Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sun, 13 Sep 2009 03:48:24 +0530 Subject: [PATCH] doc: Move templates to data/templates/ directory --- Makefile.am | 6 +++--- configure.ac | 2 ++ data/Makefile.am | 2 ++ data/templates/Makefile.am | 7 +++++++ {doc => data/templates}/debug.html | 0 {doc => data/templates}/default.html | 0 {doc => data/templates}/stats.html | 0 doc/Makefile.am | 9 ++------- 8 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 data/Makefile.am create mode 100644 data/templates/Makefile.am rename {doc => data/templates}/debug.html (100%) rename {doc => data/templates}/default.html (100%) rename {doc => data/templates}/stats.html (100%) 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 similarity index 100% rename from doc/debug.html rename to data/templates/debug.html diff --git a/doc/default.html b/data/templates/default.html similarity index 100% rename from doc/default.html rename to data/templates/default.html diff --git a/doc/stats.html b/data/templates/stats.html similarity index 100% rename from doc/stats.html rename to 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 +