man pages
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.32 2002-09-16 14:16:31 adam Exp $
2
3 docdir=$(datadir)/doc/@PACKAGE@
4
5 XMLFILES=$(srcdir)/yaz.xml.in $(srcdir)/introduction.xml \
6  $(srcdir)/installation.xml $(srcdir)/indexdata.xml $(srcdir)/asn.xml \
7  $(srcdir)/tools.xml $(srcdir)/odr.xml $(srcdir)/comstack.xml \
8  $(srcdir)/frontend.xml $(srcdir)/license.xml $(srcdir)/future.xml  \
9  $(srcdir)/client.xml $(srcdir)/zoom.xml $(srcdir)/credits.xml \
10  $(srcdir)/ztest-options.xml $(srcdir)/yaz-client-commands.xml
11
12 HTMLFILES = asn.external.html asn.html asn.oid.html asn.pdu.html \
13  asn.preparing.html client.commands.html client.html client.invoking.html \
14  client.searching.html comstack.addresses.html comstack.client.html \
15  comstack.common.html comstack.diagnostics.html comstack.html \
16  comstack.introduction.html comstack.server.html comstack.summary.html \
17  credits.html future.html indexdata.html installation.html \
18  installation.unix.html \
19  installation.win32.html introduction.html \
20  license.html license.other.html odr.debugging.html \
21  odr.html odr.programming.html odr.use.html server.backend.html \
22  server.backendfunctions.html server.frontend.html server.html \
23  server.invocation.html server.main.html tools.html tools.nmem.html \
24  tools.oid.html yaz.html zoom.events.html zoom.html \
25  zoom.options.html zoom.records.html zoom.resultsets.html zoom.query.html \
26  zoom.scan.html
27
28 DOCFILES=$(HTMLFILES) yaz.pdf
29 MANFILES=yaz-client.1 yaz-client-ssl.1 yaz-ztest.8 \
30         yaz-ztest-ssl.8 yaz-config.1 yaz.7
31 REFFILES=yaz-client.sgml yaz-ztest.sgml yaz-config.sgml yaz-man.sgml
32
33 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl xml.dcl id.eps id.png
34
35 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(DOCFILES) $(MANFILES) $(REFFILES)
36
37 doc_DATA = $(DOCFILES)
38 man_MANS = $(MANFILES)
39
40 yaz-client.1: yaz-client.sgml
41         cd $(srcdir); docbook2man yaz-client.sgml
42
43 yaz-ztest.8: yaz-ztest.sgml
44         cd $(srcdir); docbook2man yaz-ztest.sgml
45
46 yaz-config.1: yaz-config.sgml
47         cd $(srcdir); docbook2man yaz-config.sgml
48
49 yaz.7: yaz-man.sgml
50         cd $(srcdir); docbook2man yaz-man.sgml
51
52 yaz-ztest-ssl.8: yaz-ztest.8
53         ln -s yaz-ztest.8 yaz-ztest-ssl.8
54
55 yaz-client-ssl.1: yaz-client.1
56         ln -s yaz-client.1 yaz-client-ssl.1
57
58 $(HTMLFILES): $(XMLFILES) 
59         cd $(srcdir); jade -E14 -d yazhtml.dsl -t sgml xml.dcl yaz.xml
60
61 $(srcdir)/yaz.php: $(XMLFILES)
62         cd $(srcdir); jade -E14 -d yazphp.dsl -t sgml xml.dcl yaz.xml
63
64 $(srcdir)/yaz.pdf: $(XMLFILES)
65         cd $(srcdir); jade -d yazprint.dsl -t tex xml.dcl yaz.xml
66         pdfjadetex yaz.tex
67         pdfjadetex yaz.tex
68         pdfjadetex yaz.tex