Stuff on SRW
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.38 2003-02-21 00:24:26 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 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 tools.html tools.nmem.html tools.oid.html yaz.html \
22  zoom.events.html zoom.html zoom.options.html zoom.query.html \
23  zoom.records.html zoom.resultsets.html zoom.scan.html
24
25 MANFILES=yaz-client.1 yaz-client-ssl.1 yaz-ztest.8 \
26         yaz-ztest-ssl.8 yaz-config.1 yaz.7 zoomsh.1
27 REFFILES=yaz-client.sgml yaz-ztest.sgml yaz-config.sgml \
28         yaz-man.sgml zoomsh.sgml
29
30 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl tkl.xsl xml.dcl id.eps
31
32 doc_DATA = $(HTMLFILES) yaz.pdf id.png
33
34 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(MANFILES) $(REFFILES) $(doc_DATA)
35
36 man_MANS = $(MANFILES)
37
38 yaz-client.1: $(srcdir)/yaz-client.sgml $(srcdir)/yaz-client-commands.xml
39         if test ! -f yaz-client-commands.xml ; then ln -s $(srcdir)/yaz-client-commands.xml .; fi
40         docbook2man $(srcdir)/yaz-client.sgml
41
42 yaz-ztest.8: yaz-ztest.sgml ztest-options.xml
43         if test ! -f ztest-options.xml ; then ln -s $(srcdir)/ztest-options .; fi
44         docbook2man $(srcdir)/yaz-ztest.sgml
45
46 yaz-config.1: yaz-config.sgml
47         docbook2man $(srcdir)/yaz-config.sgml
48
49 yaz.7: yaz-man.sgml
50         docbook2man $(srcdir)/yaz-man.sgml
51
52 zoomsh.1: zoomsh.sgml
53         docbook2man $(srcdir)/zoomsh.sgml
54
55 yaz-ztest-ssl.8: yaz-ztest.8
56         ln -s yaz-ztest.8 yaz-ztest-ssl.8
57
58 yaz-client-ssl.1: yaz-client.1
59         ln -s yaz-client.1 yaz-client-ssl.1
60
61 $(HTMLFILES): $(XMLFILES)  
62         jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
63
64 yaz.php: $(XMLFILES)
65         jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
66
67 yaz.pdf: $(XMLFILES) $(srcdir)/id.png
68         if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi
69         jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl yaz.xml
70         pdfjadetex yaz.tex
71         pdfjadetex yaz.tex
72         pdfjadetex yaz.tex
73
74 index.tkl: $(XMLFILES) tkl.xsl
75         xsltproc tkl.xsl yaz.xml
76