Using dblatex instead of pdfjadetex
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.77 2007-01-19 16:08:33 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
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 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
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 yaz-client.1: $(srcdir)/yaz-client-man.xml $(srcdir)/yaz-client-commands.xml
31         $(MAN_COMPILE) $(srcdir)/yaz-client-man.xml
32
33 yaz-ztest.8: yaz-ztest-man.xml gfs-options.xml gfs-synopsis.xml gfs-virtual.xml
34         $(MAN_COMPILE) $(srcdir)/yaz-ztest-man.xml
35
36 yaz-config.8: yaz-config-man.xml
37         $(MAN_COMPILE) $(srcdir)/yaz-config-man.xml
38
39 yaz.7: yaz-man.xml
40         $(MAN_COMPILE) $(srcdir)/yaz-man.xml
41
42 zoomsh.1: zoomsh-man.xml
43         $(MAN_COMPILE) $(srcdir)/zoomsh-man.xml
44
45 yaz-asncomp.1: yaz-asncomp-man.xml
46         $(MAN_COMPILE) $(srcdir)/yaz-asncomp-man.xml
47
48 yaz-marcdump.1: yaz-marcdump-man.xml
49         $(MAN_COMPILE) $(srcdir)/yaz-marcdump-man.xml
50
51 yaz-iconv.1: yaz-iconv-man.xml
52         $(MAN_COMPILE) $(srcdir)/yaz-iconv-man.xml
53
54 yaz-log.7: yaz-log-man.xml
55         $(MAN_COMPILE) $(srcdir)/yaz-log-man.xml
56
57 $(HTMLFILES): $(XMLFILES)
58         rm -f *.html
59         $(HTML_COMPILE) $(srcdir)/yaz.xml
60
61 index.tkl: $(XMLFILES)
62         rm -f *.tkl
63         $(TKL_COMPILE) $(srcdir)/yaz.xml
64
65 yaz.pdf: $(XMLFILES)
66         dblatex $(srcdir)/yaz.xml
67
68 apilayer.png: 
69         tgif -print -xbm apilayer.obj
70         xbmtopbm <apilayer.xbm|pnmtopng >apilayer.png
71
72 dist-hook:
73         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
74         for p in $$d/*.html; do \
75                 cp $$p $(distdir); \
76         done
77
78 doc-clean:
79         rm -f *.html *.[0-9] *.pdf *.tkl
80
81 install-data-hook:
82         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
83         for p in $$d/*.html; do \
84                 $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \
85         done
86
87 uninstall-hook:
88         rm -r $(DESTDIR)/$(docdir)