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