Added yaz-illclient man page.
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.80 2007-06-03 09:56:50 adam Exp $
2
3 docdir=$(datadir)/doc/@PACKAGE@
4
5 SUBDIRS = common
6
7 XMLFILES=bookinfo.xml introduction.xml installation.xml \
8  indexdata.xml \
9  asn.xml tools.xml odr.xml comstack.xml frontend.xml license.xml \
10  future.xml client.xml ziffy.xml zoom.xml credits.xml gfs-options.xml \
11  yaz.xml yaz-client-commands.xml soap.xml gfs-virtual.xml gfs-synopsis.xml \
12  std-oid-table.xml
13
14 HTMLFILES = index.html
15
16 MANFILES=yaz-client.1 yaz-ztest.8 \
17         yaz-config.8 yaz.7 zoomsh.1 yaz-asncomp.1 \
18         yaz-marcdump.1 yaz-iconv.1 yaz-log.7 yaz-illclient.1
19 REFFILES=yaz-client-man.xml yaz-ztest-man.xml yaz-config-man.xml \
20         yaz-man.xml zoomsh-man.xml yaz-asncomp-man.xml \
21         yaz-marcdump-man.xml yaz-iconv-man.xml yaz-log-man.xml \
22         yaz-illclient-man.xml
23
24 SUPPORTFILES=entities.ent apilayer.obj local.ent.in
25
26 doc_DATA = $(HTMLFILES) apilayer.png 
27 man_MANS = $(MANFILES)
28
29 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(man_MANS) $(REFFILES) \
30         $(doc_DATA)
31
32 std-oid-table.xml: $(srcdir)/../src/oid.csv
33         $(TCLSH) $(srcdir)/../src/oidtoc.tcl $(srcdir) $(srcdir)/../src/oid.csv std-oid-table.xml
34
35 yaz-client.1: $(srcdir)/yaz-client-man.xml $(srcdir)/yaz-client-commands.xml
36         $(MAN_COMPILE) $(srcdir)/yaz-client-man.xml
37
38 yaz-ztest.8: yaz-ztest-man.xml gfs-options.xml gfs-synopsis.xml gfs-virtual.xml
39         $(MAN_COMPILE) $(srcdir)/yaz-ztest-man.xml
40
41 yaz-config.8: yaz-config-man.xml
42         $(MAN_COMPILE) $(srcdir)/yaz-config-man.xml
43
44 yaz.7: yaz-man.xml
45         $(MAN_COMPILE) $(srcdir)/yaz-man.xml
46
47 zoomsh.1: zoomsh-man.xml
48         $(MAN_COMPILE) $(srcdir)/zoomsh-man.xml
49
50 yaz-asncomp.1: yaz-asncomp-man.xml
51         $(MAN_COMPILE) $(srcdir)/yaz-asncomp-man.xml
52
53 yaz-marcdump.1: yaz-marcdump-man.xml
54         $(MAN_COMPILE) $(srcdir)/yaz-marcdump-man.xml
55
56 yaz-iconv.1: yaz-iconv-man.xml
57         $(MAN_COMPILE) $(srcdir)/yaz-iconv-man.xml
58
59 yaz-illclient.1: yaz-illclient-man.xml
60         $(MAN_COMPILE) $(srcdir)/yaz-illclient-man.xml
61
62 yaz-log.7: yaz-log-man.xml
63         $(MAN_COMPILE) $(srcdir)/yaz-log-man.xml
64
65 $(HTMLFILES): $(XMLFILES)
66         rm -f *.html
67         $(HTML_COMPILE) $(srcdir)/yaz.xml
68
69 index.tkl: $(XMLFILES)
70         rm -f *.tkl
71         $(TKL_COMPILE) $(srcdir)/yaz.xml
72
73 yaz.pdf: $(XMLFILES)
74         dblatex $(srcdir)/yaz.xml
75
76
77 yazj.pdf:
78         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(srcdir)/yaz.xml
79         rm -f yazj.pdf
80         cp yaz.tex yazj.tex
81         pdfjadetex yazj.tex
82         pdfjadetex yazj.tex >/dev/null
83         pdfjadetex yazj.tex >/dev/null
84
85 apilayer.png: 
86         tgif -print -xbm apilayer.obj
87         xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
88
89 dist-hook:
90         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
91         for p in $$d/*.html; do \
92                 cp $$p $(distdir); \
93         done
94
95 doc-clean:
96         rm -f *.html *.[0-9] *.pdf *.tkl
97
98 install-data-hook:
99         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
100         for p in $$d/*.html; do \
101                 $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \
102         done
103
104 uninstall-hook:
105         rm -r $(DESTDIR)/$(docdir)