04339cdd32bc3df90ca4c32ced75628ffe8b1e2c
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.40 2003-02-21 12:20:22 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 soap.xml
9
10 HTMLFILES = \
11  asn.external.html asn.html asn.oid.html asn.pdu.html asn.preparing.html \
12  client.commands.html client.html client.invoking.html client.searching.html \
13  comstack.addresses.html comstack.client.html comstack.common.html \
14  comstack.diagnostics.html comstack.html comstack.introduction.html \
15  comstack.server.html comstack.summary.html credits.html future.html \
16  indexdata.html installation.html installation.unix.html \
17  installation.win32.html introduction.api.html introduction.html \
18  license.html license.other.html odr.debugging.html odr.html \
19  odr.programming.html odr.use.html server.backendfunctions.html \
20  server.backend.html server.frontend.html server.html server.invocation.html \
21  server.main.html soap.html soap.http.html soap.xml.html soap.srw.html \
22  tools.html tools.nmem.html tools.oid.html yaz.html \
23  zoom.events.html zoom.html zoom.options.html zoom.query.html \
24  zoom.records.html zoom.resultsets.html zoom.scan.html
25
26 MANFILES=yaz-client.1 yaz-client-ssl.1 yaz-ztest.8 \
27         yaz-ztest-ssl.8 yaz-config.1 yaz.7 zoomsh.1
28 REFFILES=yaz-client.sgml yaz-ztest.sgml yaz-config.sgml \
29         yaz-man.sgml zoomsh.sgml
30
31 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl tkl.xsl xml.dcl id.eps
32
33 doc_DATA = $(HTMLFILES) yaz.pdf id.png
34
35 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(MANFILES) $(REFFILES) $(doc_DATA)
36
37 man_MANS = $(MANFILES)
38
39 yaz-client.1: $(srcdir)/yaz-client.sgml $(srcdir)/yaz-client-commands.xml
40         if test ! -f yaz-client-commands.xml ; then ln -s $(srcdir)/yaz-client-commands.xml .; fi
41         docbook2man $(srcdir)/yaz-client.sgml
42
43 yaz-ztest.8: yaz-ztest.sgml ztest-options.xml
44         if test ! -f ztest-options.xml ; then ln -s $(srcdir)/ztest-options .; fi
45         docbook2man $(srcdir)/yaz-ztest.sgml
46
47 yaz-config.1: yaz-config.sgml
48         docbook2man $(srcdir)/yaz-config.sgml
49
50 yaz.7: yaz-man.sgml
51         docbook2man $(srcdir)/yaz-man.sgml
52
53 zoomsh.1: zoomsh.sgml
54         docbook2man $(srcdir)/zoomsh.sgml
55
56 yaz-ztest-ssl.8: yaz-ztest.8
57         ln -s yaz-ztest.8 yaz-ztest-ssl.8
58
59 yaz-client-ssl.1: yaz-client.1
60         ln -s yaz-client.1 yaz-client-ssl.1
61
62 $(HTMLFILES): $(XMLFILES)  
63         jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
64
65 yaz.php: $(XMLFILES)
66         jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
67
68 yaz.pdf: $(XMLFILES) $(srcdir)/id.png
69         if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi
70         jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl yaz.xml
71         pdfjadetex yaz.tex
72         pdfjadetex yaz.tex
73         pdfjadetex yaz.tex
74
75 index.tkl: $(XMLFILES) tkl.xsl
76         xsltproc tkl.xsl yaz.xml
77