X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=c46d3ce3ff09b37b9ed30a5f88b3135974a0af23;hp=8a6715113402dfefd7023a4debd3ea90795b12df;hb=2f290fa37534e47e77ca02ff1dcb47d2b56be500;hpb=0e003c1f98eb27d793ddaa2579f286c2cea6d066 diff --git a/doc/Makefile.am b/doc/Makefile.am index 8a67151..c46d3ce 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,6 +1,3 @@ -## $Id: Makefile.am,v 1.20 2006-05-26 19:46:37 adam Exp $ -docdir=$(datadir)/doc/@PACKAGE@ - SUBDIRS = common XMLFILES = \ @@ -9,66 +6,51 @@ XMLFILES = \ zoom.xml \ api.xml \ license.xml \ - yazpp.xml.in + yazpp.xml -TOP = yazpp.xml +TOP = $(srcdir)/yazpp.xml MANFILES = yazpp-config.8 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 +EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \ + entities.ent local.ent.in $(HTMLFILES): $(XMLFILES) - xsltproc common/html.xsl $(TOP) + rm -f *.html + $(HTML_COMPILE) $(TOP) -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 - -index.tkl: $(XMLFILES) common/tkl.xsl - xsltproc common/tkl.xsl $(TOP) +index.tkl: $(XMLFILES) + $(TKL_COMPILE) $(TOP) yazpp-config.8: yazpp-config-man.xml - xsltproc common/man.xsl $(srcdir)/yazpp-config-man.xml + $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml + +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: - 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 \ + 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 +uninstall-hook: + rm -r $(DESTDIR)$(docdir)