Renamed ztest-options.xml to gfs-options.xml. Added GFS common synopsis
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.59 2005-03-13 21:43:00 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 gfs-options.xml \
8  yaz-client-commands.xml soap.xml gfs-virtual.xml gfs-synopsis.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.ssl.html comstack.summary.html \
16  credits.html future.html \
17  indexdata.html installation.html installation.unix.html \
18  installation.win32.html introduction.api.html introduction.html \
19  license.html license.other.html odr.debugging.html odr.html \
20  odr.programming.html odr.use.html server.backendfunctions.html \
21  server.backend.html server.frontend.html server.html server.invocation.html \
22  server.main.html server.vhosts.html \
23  soap.html soap.http.html soap.xml.html soap.srw.html \
24  tools.html tools.marc.html tools.nmem.html tools.log.html tools.oid.html \
25  yaz.html zoom.events.html zoom.html zoom.options.html zoom.query.html \
26  zoom.records.html zoom.resultsets.html zoom.scan.html
27
28 MANFILES=yaz-client.1 yaz-ztest.8 \
29         yaz-config.8 yaz.7 zoomsh.1 yaz-asncomp.1 \
30         yaz-marcdump.1 yaz-iconv.1 yaz-log.7
31 REFFILES=yaz-client-man.xml yaz-ztest-man.xml yaz-config-man.xml \
32         yaz-man.xml zoomsh-man.xml yaz-asncomp-man.xml \
33         yaz-marcdump-man.xml yaz-iconv-man.xml yaz-log-man.xml
34
35 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl tkl.xsl xml.dcl id.eps \
36         apilayer.obj yaz.css
37
38 doc_DATA = $(HTMLFILES) yaz.pdf id.png apilayer.png yaz.css
39 man_MANS = $(MANFILES)
40
41 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(man_MANS) $(REFFILES) \
42         $(doc_DATA) Doxyfile
43
44 yaz-client.1: $(srcdir)/yaz-client-man.xml $(srcdir)/yaz-client-commands.xml
45         docbook2man $(srcdir)/yaz-client-man.xml
46
47 yaz-ztest.8: yaz-ztest-man.xml gfs-options.xml gfs-synopsis.xml gfs-virtual.xml
48         docbook2man $(srcdir)/yaz-ztest-man.xml
49
50 yaz-config.8: yaz-config-man.xml
51         docbook2man $(srcdir)/yaz-config-man.xml
52
53 yaz.7: yaz-man.xml
54         docbook2man $(srcdir)/yaz-man.xml
55
56 zoomsh.1: zoomsh-man.xml
57         docbook2man $(srcdir)/zoomsh-man.xml
58
59 yaz-asncomp.1: yaz-asncomp-man.xml
60         docbook2man $(srcdir)/yaz-asncomp-man.xml
61
62 yaz-marcdump.1: yaz-marcdump-man.xml
63         docbook2man $(srcdir)/yaz-marcdump-man.xml
64
65 yaz-iconv.1: yaz-iconv-man.xml
66         docbook2man $(srcdir)/yaz-iconv-man.xml
67
68 yaz-log.7: yaz-log-man.xml
69         docbook2man $(srcdir)/yaz-log-man.xml
70
71 $(HTMLFILES): $(XMLFILES)  
72         jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
73
74 yaz.php: $(XMLFILES)
75         jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
76
77 yaz.pdf: $(XMLFILES) $(srcdir)/id.png
78         if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi
79         if test ! -f apilayer.png ; then ln -s $(srcdir)/apilayer.png .; fi
80         jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl yaz.xml
81         pdfjadetex yaz.tex >/dev/null
82         pdfjadetex yaz.tex >/dev/null
83         pdfjadetex yaz.tex >/dev/null
84
85 index.tkl: $(XMLFILES) tkl.xsl
86         xsltproc tkl.xsl yaz.xml
87
88 apilayer.png: 
89         tgif -print -xbm apilayer.obj
90         xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
91
92 dist-hook:
93         for f in $(srcdir)/*.html; do \
94                 found=0; \
95                 b=`basename $$f`; \
96                 for h in $(HTMLFILES); do \
97                         if test "$$h" = "$$b"; then \
98                                 found=1; \
99                         fi \
100                 done; \
101                 if test "$$found" = "0"; then \
102                         echo "$$b not found in HTMLFILES"; \
103                         exit 1; \
104                 fi \
105         done
106
107