X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile.am;h=51e867922a1dbdbdf6c1c5da640091ddd4d759ea;hp=b8a3a2e61f4eef0b75f704104219fe31d225a699;hb=HEAD;hpb=76020c413df4fdf9127031270cf734be70055047 diff --git a/doc/Makefile.am b/doc/Makefile.am index b8a3a2e..51e8679 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,67 +1,51 @@ -## $Id: Makefile.am,v 1.18 2006-04-20 11:36:40 adam Exp $ -docdir=$(datadir)/doc/@PACKAGE@ - SUBDIRS = common -XMLFILES = \ - introduction.xml \ - installation.xml \ - zoom.xml \ - api.xml \ - license.xml \ - yazpp.xml.in - -TOP=yazpp.xml -MANFILES= -HTMLFILES = \ - api.html \ - implementations.html \ - installation.html \ - introduction.html \ - license.html \ - windows.html \ - yazpp.html \ - zoom-connection.html \ - zoom-exception.html \ - zoom-query.html \ - zoom-record.html \ - zoom-resultset.html \ - zoom.html - -doc_DATA = $(HTMLFILES) yazpp.pdf +XMLFILES = book.xml local.ent + +MANFILES = yazpp-config.1 + +REFFILES = yazpp-config-man.xml + +HTMLFILES = index.html + +doc_DATA = $(HTMLFILES) man_MANS = $(MANFILES) -EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) +EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \ + entities.ent $(HTMLFILES): $(XMLFILES) - jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(TOP) + rm -f *.html + $(HTML_COMPILE) book.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 - -index.tkl: $(XMLFILES) common/tkl.xsl - xsltproc common/tkl.xsl $(TOP) + $(PDF_COMPILE) book.xml + mv book.pdf yazpp.pdf clean-data-hook: rm -f [0-9]* *.bak dist-hook: - for f in $(srcdir)/*.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 + +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)