ZOOM now allows inspection of X509 peer certificate for verification.
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.54 2004-04-28 22:44:59 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.marc.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-ztest.8 \
27         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-asncomp.1: yaz-asncomp-man.xml
58         docbook2man $(srcdir)/yaz-asncomp-man.xml
59
60 yaz-marcdump.1: yaz-marcdump-man.xml
61         docbook2man $(srcdir)/yaz-marcdump-man.xml
62
63 yaz-iconv.1: yaz-iconv-man.xml
64         docbook2man $(srcdir)/yaz-iconv-man.xml
65
66 $(HTMLFILES): $(XMLFILES)  
67         jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
68
69 yaz.php: $(XMLFILES)
70         jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
71
72 yaz.pdf: $(XMLFILES) $(srcdir)/id.png
73         if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi
74         if test ! -f apilayer.png ; then ln -s $(srcdir)/apilayer.png .; fi
75         jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl yaz.xml
76         pdfjadetex yaz.tex
77         pdfjadetex yaz.tex
78         pdfjadetex yaz.tex
79
80 index.tkl: $(XMLFILES) tkl.xsl
81         xsltproc tkl.xsl yaz.xml
82
83 apilayer.png: 
84         tgif -print -xbm apilayer.obj
85         xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
86
87 dist-hook:
88         for f in $(srcdir)/*.html; do \
89                 found=0; \
90                 b=`basename $$f`; \
91                 for h in $(HTMLFILES); do \
92                         if test "$$h" = "$$b"; then \
93                                 found=1; \
94                         fi \
95                 done; \
96                 if test "$$found" = "0"; then \
97                         echo "$$h not found in HTMLFILES"; \
98                         exit 1; \
99                 fi \
100         done
101
102