Bump version to 3.0.51
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## This file is part of the YAZ toolkit.
2 ## Copyright (C) 1995-2009 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.8 yaz.7 zoomsh.1 yaz-asncomp.1 \
17         yaz-marcdump.1 yaz-iconv.1 yaz-log.7 \
18         yaz-illclient.1 yaz-icu.1 bib1-attr.7
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 yaz-icu-man.xml bib1-attr-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 bib1-attr.7: bib1-attr-man.xml
48         $(MAN_COMPILE) $(srcdir)/bib1-attr-man.xml
49
50 zoomsh.1: zoomsh-man.xml
51         $(MAN_COMPILE) $(srcdir)/zoomsh-man.xml
52
53 yaz-asncomp.1: yaz-asncomp-man.xml
54         $(MAN_COMPILE) $(srcdir)/yaz-asncomp-man.xml
55
56 yaz-marcdump.1: yaz-marcdump-man.xml
57         $(MAN_COMPILE) $(srcdir)/yaz-marcdump-man.xml
58
59 yaz-iconv.1: yaz-iconv-man.xml
60         $(MAN_COMPILE) $(srcdir)/yaz-iconv-man.xml
61
62 yaz-illclient.1: yaz-illclient-man.xml
63         $(MAN_COMPILE) $(srcdir)/yaz-illclient-man.xml
64
65 yaz-log.7: yaz-log-man.xml
66         $(MAN_COMPILE) $(srcdir)/yaz-log-man.xml
67
68 yaz-icu.1: yaz-icu-man.xml
69         $(MAN_COMPILE) $(srcdir)/yaz-icu-man.xml
70
71 $(HTMLFILES): $(XMLFILES)
72         rm -f *.html
73         $(HTML_COMPILE) $(srcdir)/yaz.xml
74
75 yaz.pdf: $(XMLFILES)
76         $(PDF_COMPILE) $(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 manref.xml: $(REFFILES) $(srcdir)/common/stripref.xsl
88         rm -f manref.xml
89         for i in $(REFFILES); do \
90                 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >>manref.xml; \
91         done
92
93 apilayer.png: 
94         tgif -print -xbm apilayer.obj
95         xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
96
97 dist-hook:
98         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
99         for p in $$d/*.html; do \
100                 cp $$p $(distdir); \
101         done
102
103 doc-clean:
104         rm -f *.html *.[0-9] *.pdf
105
106 install-data-hook:
107         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
108         for p in $$d/*.html; do \
109                 $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
110         done
111
112 uninstall-hook:
113         rm -r $(DESTDIR)$(docdir)