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