Documentation now based on Docbook XML/XSLT using xsltproc + Norman Walsh's
[yazpp-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.20 2006-05-26 19:46:37 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUBDIRS = common
5
6 XMLFILES = \
7  introduction.xml \
8  installation.xml \
9  zoom.xml \
10  api.xml \
11  license.xml \
12  yazpp.xml.in
13
14 TOP = yazpp.xml
15
16 MANFILES = yazpp-config.8
17
18 REFFILES = yazpp-config-man.xml
19
20 HTMLFILES = \
21  api.html \
22  implementations.html \
23  index.html \
24  installation.html \
25  introduction.html \
26  license.html \
27  windows.html \
28  zoom-connection.html \
29  zoom-exception.html \
30  zoom-query.html \
31  zoom-record.html \
32  zoom-resultset.html \
33  zoom.html
34
35 doc_DATA = $(HTMLFILES) 
36
37 man_MANS = $(MANFILES)
38
39 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) entities.ent
40
41 $(HTMLFILES): $(XMLFILES)
42         xsltproc common/html.xsl $(TOP)
43
44 yazpp.pdf: $(XMLFILES)
45         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
46         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
47         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
48         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
49         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
50
51 index.tkl: $(XMLFILES) common/tkl.xsl
52         xsltproc common/tkl.xsl $(TOP)
53
54 yazpp-config.8: yazpp-config-man.xml
55         xsltproc common/man.xsl $(srcdir)/yazpp-config-man.xml
56
57 clean-data-hook:
58         rm -f [0-9]* *.bak
59
60 dist-hook:
61         for f in *.html; do \
62                 found=0; \
63                 b=`basename $$f`; \
64                 for h in $(HTMLFILES); do \
65                         if test "$$h" = "$$b"; then \
66                                 found=1; \
67                         fi \
68                 done; \
69                 if test "$$found" = "0"; then \
70                         echo "$$h not found in HTMLFILES"; \
71                         exit 1; \
72                 fi \
73         done
74