Towards 2.0.2
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.44 2003-04-28 21:02:16 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.8 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         apilayer.obj
33
34 doc_DATA = $(HTMLFILES) yaz.pdf id.png apilayer.png
35
36 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(MANFILES) $(REFFILES) \
37         $(doc_DATA) Doxyfile
38
39 man_MANS = $(MANFILES)
40
41 yaz-client.1: $(srcdir)/yaz-client.sgml $(srcdir)/yaz-client-commands.xml
42         if test ! -f yaz-client-commands.xml ; then ln -s $(srcdir)/yaz-client-commands.xml .; fi
43         docbook2man $(srcdir)/yaz-client.sgml
44
45 yaz-ztest.8: yaz-ztest.sgml ztest-options.xml
46         if test ! -f ztest-options.xml ; then ln -s $(srcdir)/ztest-options .; fi
47         docbook2man $(srcdir)/yaz-ztest.sgml
48
49 yaz-config.8: yaz-config.sgml
50         docbook2man $(srcdir)/yaz-config.sgml
51
52 yaz.7: yaz-man.sgml
53         docbook2man $(srcdir)/yaz-man.sgml
54
55 zoomsh.1: zoomsh.sgml
56         docbook2man $(srcdir)/zoomsh.sgml
57
58 yaz-ztest-ssl.8: 
59         ln -s yaz-ztest.8 yaz-ztest-ssl.8
60
61 yaz-client-ssl.1:
62         ln -s yaz-client.1 yaz-client-ssl.1
63
64 $(HTMLFILES): $(XMLFILES)  
65         jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
66
67 yaz.php: $(XMLFILES)
68         jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
69
70 yaz.pdf: $(XMLFILES) $(srcdir)/id.png
71         if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi
72         jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl yaz.xml
73         pdfjadetex yaz.tex
74         pdfjadetex yaz.tex
75         pdfjadetex yaz.tex
76
77 index.tkl: $(XMLFILES) tkl.xsl
78         xsltproc tkl.xsl yaz.xml
79
80 apilayer.png: 
81         tgif -print -xbm apilayer.obj
82         xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
83