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