cc736dbcbd06def02da5d3feb0dcde3b1c659300
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.37 2003-02-18 10:37:08 adam Exp $
2
3 docdir=$(datadir)/doc/@PACKAGE@
4
5 XMLFILES=yaz.xml.in introduction.xml installation.xml indexdata.xml \
6  asn.xml tools.xml odr.xml comstack.xml frontend.xml license.xml \
7  future.xml client.xml zoom.xml credits.xml ztest-options.xml \
8  yaz-client-commands.xml
9
10 HTMLFILES = \
11 asn.external.html \
12 asn.html \
13 asn.oid.html \
14 asn.pdu.html \
15 asn.preparing.html \
16 client.commands.html \
17 client.html \
18 client.invoking.html \
19 client.searching.html \
20 comstack.addresses.html \
21 comstack.client.html \
22 comstack.common.html \
23 comstack.diagnostics.html \
24 comstack.html \
25 comstack.introduction.html \
26 comstack.server.html \
27 comstack.summary.html \
28 credits.html \
29 future.html \
30 indexdata.html \
31 installation.html \
32 installation.unix.html \
33 installation.win32.html \
34 introduction.html \
35 license.html \
36 license.other.html \
37 odr.debugging.html \
38 odr.html \
39 odr.programming.html \
40 odr.use.html \
41 server.backendfunctions.html \
42 server.backend.html \
43 server.frontend.html \
44 server.html \
45 server.invocation.html \
46 server.main.html \
47 tools.html \
48 tools.nmem.html \
49 tools.oid.html \
50 yaz.html \
51 zoom.events.html \
52 zoom.html \
53 zoom.options.html \
54 zoom.query.html \
55 zoom.records.html \
56 zoom.resultsets.html \
57 zoom.scan.html
58
59 MANFILES=yaz-client.1 yaz-client-ssl.1 yaz-ztest.8 \
60         yaz-ztest-ssl.8 yaz-config.1 yaz.7 zoomsh.1
61 REFFILES=yaz-client.sgml yaz-ztest.sgml yaz-config.sgml \
62         yaz-man.sgml zoomsh.sgml
63
64 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl tkl.xsl xml.dcl id.eps
65
66 doc_DATA = $(HTMLFILES) yaz.pdf id.png
67
68 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(MANFILES) $(REFFILES) $(doc_DATA)
69
70 man_MANS = $(MANFILES)
71
72 yaz-client.1: $(srcdir)/yaz-client.sgml $(srcdir)/yaz-client-commands.xml
73         if test ! -f yaz-client-commands.xml ; then ln -s $(srcdir)/yaz-client-commands.xml .; fi
74         docbook2man $(srcdir)/yaz-client.sgml
75
76 yaz-ztest.8: yaz-ztest.sgml ztest-options.xml
77         if test ! -f ztest-options.xml ; then ln -s $(srcdir)/ztest-options .; fi
78         docbook2man $(srcdir)/yaz-ztest.sgml
79
80 yaz-config.1: yaz-config.sgml
81         docbook2man $(srcdir)/yaz-config.sgml
82
83 yaz.7: yaz-man.sgml
84         docbook2man $(srcdir)/yaz-man.sgml
85
86 zoomsh.1: zoomsh.sgml
87         docbook2man $(srcdir)/zoomsh.sgml
88
89 yaz-ztest-ssl.8: yaz-ztest.8
90         ln -s yaz-ztest.8 yaz-ztest-ssl.8
91
92 yaz-client-ssl.1: yaz-client.1
93         ln -s yaz-client.1 yaz-client-ssl.1
94
95 $(HTMLFILES): $(XMLFILES)  
96         jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
97
98 yaz.php: $(XMLFILES)
99         jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
100
101 yaz.pdf: $(XMLFILES) $(srcdir)/id.png
102         if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi
103         jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl yaz.xml
104         pdfjadetex yaz.tex
105         pdfjadetex yaz.tex
106         pdfjadetex yaz.tex
107
108 index.tkl: $(XMLFILES) tkl.xsl
109         xsltproc tkl.xsl yaz.xml
110