1 ## $Id: Makefile.am,v 1.54 2004-04-28 22:44:59 adam Exp $
3 docdir=$(datadir)/doc/@PACKAGE@
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
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
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
33 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl tkl.xsl xml.dcl id.eps \
36 doc_DATA = $(HTMLFILES) yaz.pdf id.png apilayer.png yaz.css
37 man_MANS = $(MANFILES)
39 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(man_MANS) $(REFFILES) \
42 yaz-client.1: $(srcdir)/yaz-client-man.xml $(srcdir)/yaz-client-commands.xml
43 docbook2man $(srcdir)/yaz-client-man.xml
45 yaz-ztest.8: yaz-ztest-man.xml ztest-options.xml
46 docbook2man $(srcdir)/yaz-ztest-man.xml
48 yaz-config.8: yaz-config-man.xml
49 docbook2man $(srcdir)/yaz-config-man.xml
52 docbook2man $(srcdir)/yaz-man.xml
54 zoomsh.1: zoomsh-man.xml
55 docbook2man $(srcdir)/zoomsh-man.xml
57 yaz-asncomp.1: yaz-asncomp-man.xml
58 docbook2man $(srcdir)/yaz-asncomp-man.xml
60 yaz-marcdump.1: yaz-marcdump-man.xml
61 docbook2man $(srcdir)/yaz-marcdump-man.xml
63 yaz-iconv.1: yaz-iconv-man.xml
64 docbook2man $(srcdir)/yaz-iconv-man.xml
66 $(HTMLFILES): $(XMLFILES)
67 jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
70 jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
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
80 index.tkl: $(XMLFILES) tkl.xsl
81 xsltproc tkl.xsl yaz.xml
84 tgif -print -xbm apilayer.obj
85 xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
88 for f in $(srcdir)/*.html; do \
91 for h in $(HTMLFILES); do \
92 if test "$$h" = "$$b"; then \
96 if test "$$found" = "0"; then \
97 echo "$$h not found in HTMLFILES"; \