From 09a9342d8cbcd388418b5840e43aceebf681a951 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 30 Oct 2013 11:23:30 +0100 Subject: [PATCH] Documentation rebuilt if local.ent changes --- configure.ac | 9 +++++++-- doc/Makefile.am | 10 +++++----- doc/local.ent.in | 2 -- doc/local0.ent.in | 2 ++ 4 files changed, 14 insertions(+), 9 deletions(-) delete mode 100644 doc/local.ent.in create mode 100644 doc/local0.ent.in diff --git a/configure.ac b/configure.ac index e16580b..6589be7 100644 --- a/configure.ac +++ b/configure.ac @@ -35,10 +35,15 @@ AC_OUTPUT([ yazpp-config zoom/Makefile doc/Makefile - doc/local.ent + doc/local0.ent doc/common/Makefile doc/common/print.dsl -],[sed s%echo_source=yes%echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config]) +],[ + sed s%echo_source=yes%echo_source=no%g < yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config + diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \ + || cp doc/local0.ent doc/local.ent + ] +) echo \ diff --git a/doc/Makefile.am b/doc/Makefile.am index 1cfba45..722bc92 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -6,7 +6,8 @@ XMLFILES = \ zoom.xml \ api.xml \ license.xml \ - yazpp.xml + yazpp.xml \ + local.ent TOP = $(srcdir)/yazpp.xml @@ -21,18 +22,17 @@ doc_DATA = $(HTMLFILES) man_MANS = $(MANFILES) EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \ - entities.ent local.ent.in + entities.ent $(HTMLFILES): $(XMLFILES) rm -f *.html $(HTML_COMPILE) $(TOP) -index.tkl: $(XMLFILES) - $(TKL_COMPILE) $(TOP) - yazpp-config.1: yazpp-config-man.xml $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml +$(MANFILES): local.ent + yazpp.pdf: $(XMLFILES) if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi $(PDF_COMPILE) $(TOP) diff --git a/doc/local.ent.in b/doc/local.ent.in deleted file mode 100644 index 22cfcf2..0000000 --- a/doc/local.ent.in +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/doc/local0.ent.in b/doc/local0.ent.in new file mode 100644 index 0000000..22cfcf2 --- /dev/null +++ b/doc/local0.ent.in @@ -0,0 +1,2 @@ + + -- 1.7.10.4