Documentation rebuilt if local.ent changes
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Oct 2013 10:23:30 +0000 (11:23 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Oct 2013 10:23:30 +0000 (11:23 +0100)
configure.ac
doc/Makefile.am
doc/local.ent.in [deleted file]
doc/local0.ent.in [new file with mode: 0644]

index e16580b..6589be7 100644 (file)
@@ -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 \
index 1cfba45..722bc92 100644 (file)
@@ -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 (file)
index 22cfcf2..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-<!ENTITY version "@VERSION@">
-<!ENTITY prefix "@prefix@">
diff --git a/doc/local0.ent.in b/doc/local0.ent.in
new file mode 100644 (file)
index 0000000..22cfcf2
--- /dev/null
@@ -0,0 +1,2 @@
+<!ENTITY version "@VERSION@">
+<!ENTITY prefix "@prefix@">