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

index 09008fb..6acc96d 100644 (file)
@@ -94,13 +94,14 @@ AC_OUTPUT([
        xml/schema/Makefile
        xml/xslt/Makefile
        doc/Makefile
-       doc/local.ent
-        doc/common/Makefile
+       doc/local0.ent
+       doc/common/Makefile
        doc/common/print.dsl
        etc/Makefile
 ],[
         sed s%echo_source=yes%echo_source=no%g < metaproxy-config > src/metaproxy-config && chmod +x metaproxy-config src/metaproxy-config
-
+       diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \
+               || cp doc/local0.ent doc/local.ent
 ])
 
 echo \
index 96e6eb2..64d850f 100644 (file)
@@ -4,7 +4,7 @@ INKSCAPE=inkscape
 
 SUFFIXES=.3mp .1 .pdf .tkl .esp .xml 
 
-XMLFILES = book.xml manref.xml copyright.xml gpl-2.0.xml
+XMLFILES = book.xml manref.xml copyright.xml gpl-2.0.xml local.ent
 
 MAINXML = $(srcdir)/book.xml
 
@@ -67,6 +67,8 @@ man_MANS = $(MANFILES)
 
 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg 
 
+$(MANFILES): local.ent
+
 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
        rm -f *.html
        $(HTML_COMPILE) $(MAINXML)
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..7b2eb41
--- /dev/null
@@ -0,0 +1 @@
+<!ENTITY version "@VERSION@">