1 ## $Id: Makefile.am,v 1.66 2006-04-20 20:45:38 adam Exp $
3 docdir=$(datadir)/doc/@PACKAGE@
7 XMLFILES=yaz.xml.in bookinfo.xml introduction.xml installation.xml \
9 asn.xml tools.xml odr.xml comstack.xml frontend.xml license.xml \
10 future.xml client.xml zoom.xml credits.xml gfs-options.xml \
11 yaz-client-commands.xml soap.xml gfs-virtual.xml gfs-synopsis.xml
14 asn.external.html asn.html asn.oid.html asn.pdu.html asn.preparing.html \
15 client.commands.html client.html client.invoking.html client.searching.html \
16 comstack.addresses.html comstack.client.html comstack.common.html \
17 comstack.diagnostics.html comstack.html comstack.introduction.html \
18 comstack.server.html comstack.ssl.html comstack.summary.html \
19 credits.html future.html \
20 indexdata.html installation.html installation.unix.html \
21 installation.win32.html introduction.api.html introduction.html \
22 license.html license.other.html odr.debugging.html odr.html \
23 odr.programming.html odr.use.html server.backendfunctions.html \
24 server.backend.html server.frontend.html server.html server.invocation.html \
25 server.main.html server.vhosts.html \
26 soap.html soap.http.html soap.xml.html soap.srw.html \
27 tools.html tools.marc.html tools.nmem.html tools.log.html tools.oid.html \
28 yaz.html zoom.events.html zoom.ext.html zoom.html zoom.options.html \
29 zoom.query.html zoom.records.html zoom.resultsets.html zoom.scan.html
31 MANFILES=yaz-client.1 yaz-ztest.8 \
32 yaz-config.8 yaz.7 zoomsh.1 yaz-asncomp.1 \
33 yaz-marcdump.1 yaz-iconv.1 yaz-log.7
34 REFFILES=yaz-client-man.xml yaz-ztest-man.xml yaz-config-man.xml \
35 yaz-man.xml zoomsh-man.xml yaz-asncomp-man.xml \
36 yaz-marcdump-man.xml yaz-iconv-man.xml yaz-log-man.xml
38 SUPPORTFILES=entities.ent apilayer.obj
40 doc_DATA = $(HTMLFILES) yaz.pdf apilayer.png
41 man_MANS = $(MANFILES)
43 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(man_MANS) $(REFFILES) \
46 yaz-client.1: $(srcdir)/yaz-client-man.xml $(srcdir)/yaz-client-commands.xml
47 docbook2man $(srcdir)/yaz-client-man.xml
49 yaz-ztest.8: yaz-ztest-man.xml gfs-options.xml gfs-synopsis.xml gfs-virtual.xml
50 docbook2man $(srcdir)/yaz-ztest-man.xml
52 yaz-config.8: yaz-config-man.xml
53 docbook2man $(srcdir)/yaz-config-man.xml
56 docbook2man $(srcdir)/yaz-man.xml
58 zoomsh.1: zoomsh-man.xml
59 docbook2man $(srcdir)/zoomsh-man.xml
61 yaz-asncomp.1: yaz-asncomp-man.xml
62 docbook2man $(srcdir)/yaz-asncomp-man.xml
64 yaz-marcdump.1: yaz-marcdump-man.xml
65 docbook2man $(srcdir)/yaz-marcdump-man.xml
67 yaz-iconv.1: yaz-iconv-man.xml
68 docbook2man $(srcdir)/yaz-iconv-man.xml
70 yaz-log.7: yaz-log-man.xml
71 docbook2man $(srcdir)/yaz-log-man.xml
73 $(HTMLFILES): $(XMLFILES)
74 jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl yaz.xml
77 if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common; fi
78 if test ! -f apilayer.png ; then cp $(srcdir)/apilayer.png .; fi
79 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl yaz.xml
80 pdfjadetex yaz.tex >/dev/null
81 pdfjadetex yaz.tex >/dev/null
82 pdfjadetex yaz.tex >/dev/null
84 index.tkl: $(XMLFILES) common/tkl.xsl
85 xsltproc common/tkl.xsl yaz.xml
88 tgif -print -xbm apilayer.obj
89 xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
92 for f in $(srcdir)/*.html; do \
95 for h in $(HTMLFILES); do \
96 if test "$$h" = "$$b"; then \
100 if test "$$found" = "0"; then \
101 echo "$$b not found in HTMLFILES"; \