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

index b73bfd9..bb5bca5 100644 (file)
@@ -406,7 +406,7 @@ client/Makefile
 ztest/Makefile
 zoom/Makefile
 doc/Makefile
 ztest/Makefile
 zoom/Makefile
 doc/Makefile
-doc/local.ent
+doc/local0.ent
 doc/common/Makefile
 doc/common/print.dsl
 etc/Makefile
 doc/common/Makefile
 doc/common/print.dsl
 etc/Makefile
@@ -417,6 +417,8 @@ win/version.nsi
 include/yaz/yaz-version.h
 ],[
        sed s%echo_source=yes%echo_source=no%g < yaz-config > util/yaz-config && chmod +x yaz-config util/yaz-config
 include/yaz/yaz-version.h
 ],[
        sed s%echo_source=yes%echo_source=no%g < yaz-config > util/yaz-config && chmod +x yaz-config util/yaz-config
+       diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \
+               || cp doc/local0.ent doc/local.ent
     ]
 )
 
     ]
 )
 
index b2e3266..172ae24 100644 (file)
@@ -8,7 +8,7 @@ XMLFILES=bookinfo.xml introduction.xml installation.xml \
  asn.xml tools.xml odr.xml comstack.xml server.xml license.xml \
  future.xml zoom.xml credits.xml gfs-options.xml \
  yaz.xml soap.xml gfs-virtual.xml gfs-synopsis.xml \
  asn.xml tools.xml odr.xml comstack.xml server.xml license.xml \
  future.xml zoom.xml credits.xml gfs-options.xml \
  yaz.xml soap.xml gfs-virtual.xml gfs-synopsis.xml \
- std-oid-table.xml manref.xml
+ std-oid-table.xml manref.xml local.ent
 
 HTMLFILES = index.html
 
 
 HTMLFILES = index.html
 
@@ -23,7 +23,7 @@ REFFILES=yaz-client-man.xml yaz-ztest-man.xml yaz-config-man.xml \
        yaz-illclient-man.xml yaz-icu-man.xml yaz-url-man.xml \
        bib1-attr-man.xml yaz-json-parse-man.xml
 
        yaz-illclient-man.xml yaz-icu-man.xml yaz-url-man.xml \
        bib1-attr-man.xml yaz-json-parse-man.xml
 
-SUPPORTFILES=entities.ent apilayer.obj local.ent.in
+SUPPORTFILES=entities.ent apilayer.obj
 
 doc_DATA = $(HTMLFILES) apilayer.png 
 man_MANS = $(MANFILES)
 
 doc_DATA = $(HTMLFILES) apilayer.png 
 man_MANS = $(MANFILES)
@@ -80,6 +80,8 @@ $(HTMLFILES): $(XMLFILES)
        rm -f *.html
        $(HTML_COMPILE) $(srcdir)/yaz.xml
 
        rm -f *.html
        $(HTML_COMPILE) $(srcdir)/yaz.xml
 
+$(MANFILES): local.ent
+
 yaz.pdf: $(XMLFILES)
        $(PDF_COMPILE) $(srcdir)/yaz.xml
 
 yaz.pdf: $(XMLFILES)
        $(PDF_COMPILE) $(srcdir)/yaz.xml
 
diff --git a/doc/local.ent.in b/doc/local.ent.in
deleted file mode 100644 (file)
index 7b2eb41..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<!ENTITY version "@VERSION@">
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@">