X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=d9332a4d917b8074a04cc2890f33bc2f50fa5fe7;hp=993a411838065a2632e5dd01125d0fe99eb1fa19;hb=8aa33c5962490e6f5609853a26512267f287f8d4;hpb=d775854eb4b203433c54239cc447f20511850ef9 diff --git a/doc/Makefile.am b/doc/Makefile.am index 993a411..d9332a4 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.70 2006-05-28 19:56:24 adam Exp $ +## $Id: Makefile.am,v 1.73 2006-09-07 10:01:50 adam Exp $ docdir=$(datadir)/doc/@PACKAGE@ @@ -10,23 +10,7 @@ XMLFILES=bookinfo.xml introduction.xml installation.xml \ future.xml client.xml zoom.xml credits.xml gfs-options.xml \ yaz.xml yaz-client-commands.xml soap.xml gfs-virtual.xml gfs-synopsis.xml -HTMLFILES = \ - asn.external.html asn.html asn.oid.html asn.pdu.html asn.preparing.html \ - client.commands.html client.html client.invoking.html client.searching.html \ - comstack.addresses.html comstack.client.html comstack.common.html \ - comstack.diagnostics.html comstack.html comstack.introduction.html \ - comstack.server.html comstack.ssl.html comstack.summary.html \ - credits.html future.html \ - indexdata.html installation.html installation.unix.html \ - installation.win32.html introduction.api.html introduction.html \ - license.html license.other.html odr.debugging.html odr.html \ - odr.programming.html odr.use.html server.backendfunctions.html \ - server.backend.html server.frontend.html server.html server.invocation.html \ - server.main.html server.vhosts.html \ - soap.html soap.http.html soap.xml.html soap.srw.html \ - tools.html tools.marc.html tools.nmem.html tools.log.html tools.oid.html \ - index.html zoom.events.html zoom.ext.html zoom.html zoom.options.html \ - zoom.query.html zoom.records.html zoom.resultsets.html zoom.scan.html +HTMLFILES = index.html MANFILES=yaz-client.1 yaz-ztest.8 \ yaz-config.8 yaz.7 zoomsh.1 yaz-asncomp.1 \ @@ -71,9 +55,11 @@ yaz-log.7: yaz-log-man.xml $(MAN_COMPILE) $(srcdir)/yaz-log-man.xml $(HTMLFILES): $(XMLFILES) + rm -f *.html $(HTML_COMPILE) $(srcdir)/yaz.xml index.tkl: $(XMLFILES) + rm -f *.tkl $(TKL_COMPILE) $(srcdir)/yaz.xml yaz.pdf: $(XMLFILES) @@ -89,18 +75,13 @@ apilayer.png: xbmtopbm apilayer.png dist-hook: - for f in *.html; do \ - found=0; \ - b=`basename $$f`; \ - for h in $(HTMLFILES); do \ - if test "$$h" = "$$b"; then \ - found=1; \ - fi \ - done; \ - if test "$$found" = "0"; then \ - echo "$$b not found in HTMLFILES"; \ - exit 1; \ - fi \ + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ + for p in $$d/*.html; do \ + cp $$p $(distdir); \ done - +install-data-hook: + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ + for p in $$d/*.html; do \ + $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \ + done