Generate doc/local.ent via configure instead of doc/yazpp.xml.
[yazpp-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.21 2006-06-02 08:43:12 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
13
14 TOP = $(srcdir)/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) \
40         entities.ent local.ent.in
41
42 $(HTMLFILES): $(XMLFILES)
43         $(HTML_COMPILE) $(TOP)
44
45 index.tkl: $(XMLFILES) common/tkl.xsl
46         $(TKL_COMPILE) $(TOP)
47
48 yazpp-config.8: yazpp-config-man.xml
49         $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml
50
51 yazpp.pdf: $(XMLFILES)
52         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
53         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
54         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
55         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
56         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
57
58
59 clean-data-hook:
60         rm -f [0-9]* *.bak
61
62 dist-hook:
63         for f in *.html; do \
64                 found=0; \
65                 b=`basename $$f`; \
66                 for h in $(HTMLFILES); do \
67                         if test "$$h" = "$$b"; then \
68                                 found=1; \
69                         fi \
70                 done; \
71                 if test "$$found" = "0"; then \
72                         echo "$$h not found in HTMLFILES"; \
73                         exit 1; \
74                 fi \
75         done
76