X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile.am;h=722bc92d256f03f8db8f822ee5308662588ba399;hb=6596c43a86a7627af223c30e67761fe373b79b77;hp=83276c0d0c32234419296b273a514794b04ecd78;hpb=2ad40f2e15a4d6927833231b8dc6874b747fed2e;p=yazpp-moved-to-github.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 83276c0..722bc92 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,40 +1,59 @@ -## $Id: Makefile.am,v 1.1 2002-10-08 11:55:57 adam Exp $ -docdir=$(datadir)/doc/@PACKAGE@ - -SUPPORTFILES = \ - yazhtml.dsl.in \ - yazphp.dsl.in \ - yazprint.dsl.in \ - xml.dcl +SUBDIRS = common + XMLFILES = \ + introduction.xml \ installation.xml \ zoom.xml \ - proxy.xml \ - yaz++.xml.in - -TOP=yaz++.xml + api.xml \ + license.xml \ + yazpp.xml \ + local.ent + +TOP = $(srcdir)/yazpp.xml + +MANFILES = yazpp-config.1 + +REFFILES = yazpp-config-man.xml -HTMLFILES = yazpp.html installation.html zoom.html proxy.html +HTMLFILES = index.html -doc_DATA = $(HTMLFILES) yaz++.pdf +doc_DATA = $(HTMLFILES) -EXTRA_DIST = $(SUPPORTFILES) $(XMLFILES) yaz++.pdf +man_MANS = $(MANFILES) + +EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \ + entities.ent $(HTMLFILES): $(XMLFILES) - jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl $(TOP) + rm -f *.html + $(HTML_COMPILE) $(TOP) -yaz++.php: $(XMLFILES) - jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl $(TOP) +yazpp-config.1: yazpp-config-man.xml + $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml -yaz++.pdf: $(XMLFILES) - jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl $(TOP) - pdfjadetex yaz++.tex - pdfjadetex yaz++.tex - pdfjadetex yaz++.tex +$(MANFILES): local.ent -dist-hook: yaz++.html - cp *.html $(distdir) +yazpp.pdf: $(XMLFILES) + if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi + $(PDF_COMPILE) $(TOP) clean-data-hook: rm -f [0-9]* *.bak +dist-hook: + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ + for p in $$d/*.html; do \ + cp $$p $(distdir); \ + done + +doc-clean: + rm -f *.html *.[0-9] *.pdf + +install-data-hook: + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ + for p in $$d/*.html; do \ + $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \ + done + +uninstall-hook: + rm -r $(DESTDIR)$(docdir)