Announce new functionality API on Debian
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## This file is part of the YAZ toolkit.
2 ## Copyright (C) 1995-2012 Index Data
3
4 SUBDIRS = common
5
6 XMLFILES=bookinfo.xml introduction.xml installation.xml \
7  indexdata.xml \
8  asn.xml tools.xml odr.xml comstack.xml server.xml license.xml \
9  future.xml zoom.xml credits.xml gfs-options.xml \
10  yaz.xml yaz-client-commands.xml soap.xml gfs-virtual.xml gfs-synopsis.xml \
11  std-oid-table.xml manref.xml
12
13 HTMLFILES = index.html
14
15 MANFILES=yaz-client.1 yaz-ztest.8 \
16         yaz-config.1 yaz.7 zoomsh.1 yaz-asncomp.1 \
17         yaz-marcdump.1 yaz-iconv.1 yaz-log.7 \
18         yaz-illclient.1 yaz-icu.1 yaz-url.1 bib1-attr.7 \
19         yaz-json-parse.1
20 REFFILES=yaz-client-man.xml yaz-ztest-man.xml yaz-config-man.xml \
21         yaz-man.xml zoomsh-man.xml yaz-asncomp-man.xml \
22         yaz-marcdump-man.xml yaz-iconv-man.xml yaz-log-man.xml \
23         yaz-illclient-man.xml yaz-icu-man.xml yaz-url-man.xml \
24         bib1-attr-man.xml yaz-json-parse-man.xml
25
26 SUPPORTFILES=entities.ent apilayer.obj local.ent.in
27
28 doc_DATA = $(HTMLFILES) apilayer.png 
29 man_MANS = $(MANFILES)
30
31 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(man_MANS) $(REFFILES) \
32         $(doc_DATA)
33
34 std-oid-table.xml: $(srcdir)/../src/oid.csv
35         $(TCLSH) $(srcdir)/../src/oidtoc.tcl $(srcdir) $(srcdir)/../src/oid.csv std-oid-table.xml
36
37 yaz-client.1: $(srcdir)/yaz-client-man.xml $(srcdir)/yaz-client-commands.xml
38         $(MAN_COMPILE) $(srcdir)/yaz-client-man.xml
39
40 yaz-ztest.8: yaz-ztest-man.xml gfs-options.xml gfs-synopsis.xml gfs-virtual.xml
41         $(MAN_COMPILE) $(srcdir)/yaz-ztest-man.xml
42
43 yaz-config.1: yaz-config-man.xml
44         $(MAN_COMPILE) $(srcdir)/yaz-config-man.xml
45
46 yaz.7: yaz-man.xml
47         $(MAN_COMPILE) $(srcdir)/yaz-man.xml
48
49 bib1-attr.7: bib1-attr-man.xml
50         $(MAN_COMPILE) $(srcdir)/bib1-attr-man.xml
51
52 zoomsh.1: zoomsh-man.xml
53         $(MAN_COMPILE) $(srcdir)/zoomsh-man.xml
54
55 yaz-asncomp.1: yaz-asncomp-man.xml
56         $(MAN_COMPILE) $(srcdir)/yaz-asncomp-man.xml
57
58 yaz-marcdump.1: yaz-marcdump-man.xml
59         $(MAN_COMPILE) $(srcdir)/yaz-marcdump-man.xml
60
61 yaz-iconv.1: yaz-iconv-man.xml
62         $(MAN_COMPILE) $(srcdir)/yaz-iconv-man.xml
63
64 yaz-illclient.1: yaz-illclient-man.xml
65         $(MAN_COMPILE) $(srcdir)/yaz-illclient-man.xml
66
67 yaz-log.7: yaz-log-man.xml
68         $(MAN_COMPILE) $(srcdir)/yaz-log-man.xml
69
70 yaz-icu.1: yaz-icu-man.xml
71         $(MAN_COMPILE) $(srcdir)/yaz-icu-man.xml
72
73 yaz-url.1: yaz-url-man.xml
74         $(MAN_COMPILE) $(srcdir)/yaz-url-man.xml
75
76 yaz-json-parse.1: yaz-json-parse-man.xml
77         $(MAN_COMPILE) $(srcdir)/yaz-json-parse-man.xml
78
79 $(HTMLFILES): $(XMLFILES)
80         rm -f *.html
81         $(HTML_COMPILE) $(srcdir)/yaz.xml
82
83 yaz.pdf: $(XMLFILES)
84         $(PDF_COMPILE) $(srcdir)/yaz.xml
85
86
87 yazj.pdf:
88         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(srcdir)/yaz.xml
89         rm -f yazj.pdf
90         cp yaz.tex yazj.tex
91         pdfjadetex yazj.tex
92         pdfjadetex yazj.tex >/dev/null
93         pdfjadetex yazj.tex >/dev/null
94
95 manref.xml: $(REFFILES) $(srcdir)/common/stripref.xsl
96         rm -f manref.xml
97         for i in $(REFFILES); do \
98                 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >>manref.xml; \
99         done
100
101 apilayer.png: 
102         tgif -print -xbm apilayer.obj
103         xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
104
105 dist-hook:
106         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
107         for p in $$d/*.html; do \
108                 cp $$p $(distdir); \
109         done
110
111 doc-clean:
112         rm -f manref.xml *.html *.[0-9] *.pdf
113
114 install-data-hook:
115         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
116         for p in $$d/*.html; do \
117                 $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
118         done
119
120 uninstall-hook:
121         rm -r $(DESTDIR)$(docdir)