X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile.am;h=722bc92d256f03f8db8f822ee5308662588ba399;hb=6596c43a86a7627af223c30e67761fe373b79b77;hp=4702c5fe6a52f0f04415f1722142898569e4a67d;hpb=3ebdac624f7c6cdef6894cd6a42deb34a4c51bc9;p=yazpp-moved-to-github.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 4702c5f..722bc92 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,6 +1,3 @@ -## $Id: Makefile.am,v 1.22 2006-06-28 21:43:45 adam Exp $ -docdir=$(datadir)/doc/@PACKAGE@ - SUBDIRS = common XMLFILES = \ @@ -9,68 +6,54 @@ XMLFILES = \ zoom.xml \ api.xml \ license.xml \ - yazpp.xml + yazpp.xml \ + local.ent TOP = $(srcdir)/yazpp.xml -MANFILES = yazpp-config.8 +MANFILES = yazpp-config.1 REFFILES = yazpp-config-man.xml -HTMLFILES = \ - api.html \ - implementations.html \ - index.html \ - installation.html \ - introduction.html \ - license.html \ - windows.html \ - zoom-connection.html \ - zoom-exception.html \ - zoom-query.html \ - zoom-record.html \ - zoom-resultset.html \ - zoom.html +HTMLFILES = index.html 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) common/tkl.xsl - $(TKL_COMPILE) $(TOP) - -yazpp-config.8: yazpp-config-man.xml +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 - jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP) - pdfjadetex yazpp.tex >pdfjadetex.log 2>&1 - pdfjadetex yazpp.tex >pdfjadetex.log 2>&1 - pdfjadetex yazpp.tex >pdfjadetex.log 2>&1 - + $(PDF_COMPILE) $(TOP) clean-data-hook: rm -f [0-9]* *.bak dist-hook: - if test -f index.html; then 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 "$$h not found in HTMLFILES"; \ - exit 1; \ - fi \ - done; fi - + 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)