1 ## $Id: Makefile.am,v 1.71 2006-06-28 21:41:54 adam Exp $
3 docdir=$(datadir)/doc/@PACKAGE@
7 XMLFILES=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.xml 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 index.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 local.ent.in
40 doc_DATA = $(HTMLFILES) 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 $(MAN_COMPILE) $(srcdir)/yaz-client-man.xml
49 yaz-ztest.8: yaz-ztest-man.xml gfs-options.xml gfs-synopsis.xml gfs-virtual.xml
50 $(MAN_COMPILE) $(srcdir)/yaz-ztest-man.xml
52 yaz-config.8: yaz-config-man.xml
53 $(MAN_COMPILE) $(srcdir)/yaz-config-man.xml
56 $(MAN_COMPILE) $(srcdir)/yaz-man.xml
58 zoomsh.1: zoomsh-man.xml
59 $(MAN_COMPILE) $(srcdir)/zoomsh-man.xml
61 yaz-asncomp.1: yaz-asncomp-man.xml
62 $(MAN_COMPILE) $(srcdir)/yaz-asncomp-man.xml
64 yaz-marcdump.1: yaz-marcdump-man.xml
65 $(MAN_COMPILE) $(srcdir)/yaz-marcdump-man.xml
67 yaz-iconv.1: yaz-iconv-man.xml
68 $(MAN_COMPILE) $(srcdir)/yaz-iconv-man.xml
70 yaz-log.7: yaz-log-man.xml
71 $(MAN_COMPILE) $(srcdir)/yaz-log-man.xml
73 $(HTMLFILES): $(XMLFILES)
74 $(HTML_COMPILE) $(srcdir)/yaz.xml
76 index.tkl: $(XMLFILES)
77 $(TKL_COMPILE) $(srcdir)/yaz.xml
80 if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common; fi
81 if test ! -f apilayer.png ; then cp $(srcdir)/apilayer.png .; fi
82 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(srcdir)/yaz.xml
84 pdfjadetex yaz.tex >/dev/null
85 pdfjadetex yaz.tex >/dev/null
88 tgif -print -xbm apilayer.obj
89 xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
92 if test -f index.html; then for f in *.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"; \