doc: Move templates to data/templates/ directory

This commit is contained in:
Mukund Sivaraman 2009-09-13 03:48:24 +05:30
parent d7296318a0
commit f3e06436b5
8 changed files with 16 additions and 10 deletions

View File

@ -6,7 +6,7 @@ CONFIG_FILES = \
m4macros/typecheck.m4 m4macros/argenable.m4 m4macros/typecheck.m4 m4macros/argenable.m4
EXTRA_DIST = $(CONFIG_FILES) TODO autogen.sh 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 install-data-local: tinyproxy-configure-file tinyproxy-html-files
@ -38,8 +38,8 @@ tinyproxy-html-files:
$(mkinstalldirs) $(DESTDIR)$(datadir)/tinyproxy $(mkinstalldirs) $(DESTDIR)$(datadir)/tinyproxy
for file in debug default stats; do \ 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 || \ 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 done
$(INSTALL) -m 644 $(srcdir)/doc/HTML_VARIABLES $(DESTDIR)$(datadir)/tinyproxy/HTML_VARIABLES $(INSTALL) -m 644 $(srcdir)/doc/HTML_VARIABLES $(DESTDIR)$(datadir)/tinyproxy/HTML_VARIABLES

View File

@ -326,6 +326,8 @@ AM_CONDITIONAL(HAVE_A2X, test "x$A2X" != "xno")
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
src/Makefile src/Makefile
data/Makefile
data/templates/Makefile
doc/Makefile doc/Makefile
doc/man8/Makefile doc/man8/Makefile
packaging/Makefile packaging/Makefile

2
data/Makefile.am Normal file
View File

@ -0,0 +1,2 @@
SUBDIRS = \
templates

View File

@ -0,0 +1,7 @@
TEMPLATES = \
debug.html \
default.html \
stats.html
EXTRA_DIST = \
$(TEMPLATES)

View File

@ -1,15 +1,10 @@
SUBDIRS = \ SUBDIRS = \
man8 man8
TEMPLATES = \
debug.html \
default.html \
stats.html
EXTRA_DIST = \ EXTRA_DIST = \
tinyproxy.conf \ tinyproxy.conf \
HTML_VARIABLES \ HTML_VARIABLES \
HTTP_ERROR_CODES \ HTTP_ERROR_CODES \
RFC_INFO \ RFC_INFO \
filter-howto.txt \ filter-howto.txt
$(TEMPLATES)