Get rid of tex messages
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.26 2004-12-15 09:10:47 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUPPORTFILES = \
5  zebrahtml.dsl \
6  zebraphp.dsl \
7  zebraprint.dsl \
8  tkl.xsl \
9  xml.dcl
10 XMLFILES = \
11  zebra.xml.in \
12  introduction.xml \
13  installation.xml \
14  quickstart.xml \
15  examples.xml \
16  administration.xml \
17  zebraidx.xml \
18  server.xml \
19  recordmodel.xml \
20  license.xml \
21  indexdata.xml \
22  zebraidx-options.xml \
23  zebraidx-commands.xml
24
25 HTMLFILES =  \
26  administration.html apps.html configuration-file.html data-model.html \
27  example1.html example2.html examples.html features.html file-ids.html \
28  formats.html future.html generic-ids.html indexdata.html installation.html \
29  installation.win32.html internal-representation.html introduction.html \
30  license.html locating-records.html protocol-support.html quick-start.html \
31  record-model.html register-location.html server.html shadow-registers.html \
32  simple-indexing.html support.html zebra.html zebraidx.html 
33
34 PNGFILES=zebra.png
35 EPSFILES=zebra.eps
36
37 MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
38
39 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml idzebra-config-man.sgml
40
41 doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
42 man_MANS = $(MANFILES)
43
44 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
45         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
46         zvrank.txt marc_indexing.xml
47
48 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
49         if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
50         if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
51         docbook2man $(srcdir)/zebraidx-man.sgml
52
53 zebrasrv.8: zebrasrv-man.sgml
54         docbook2man $(srcdir)/zebrasrv-man.sgml
55
56 idzebra-config.1: idzebra-config-man.sgml
57         docbook2man $(srcdir)/idzebra-config-man.sgml
58
59 $(HTMLFILES): $(XMLFILES)
60         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
61
62 zebra.php: $(XMLFILES)
63         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
64
65 zebra.pdf: $(XMLFILES)
66         for i in $(PNGFILES); do \
67                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
68         done
69         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
70         pdfjadetex zebra.tex >/dev/null
71         pdfjadetex zebra.tex >/dev/null
72         pdfjadetex zebra.tex >/dev/null
73
74 index.tkl: $(XMLFILES) tkl.xsl
75         xsltproc tkl.xsl zebra.xml
76
77 gils.txt: gils.sgml
78         sgml2txt -f gils.sgml
79
80 gils.ps: gils.sgml
81         sgml2latex -o ps -p a4 gils.sgml
82
83 gils.html: gils.sgml
84         sgml2html gils.sgml
85
86 clean-data-hook:
87         rm -f [0-9]* *.bak
88
89 dist-hook:
90         for f in $(srcdir)/*.html; do \
91                 found=0; \
92                 b=`basename $$f`; \
93                 for h in $(HTMLFILES); do \
94                         if test "$$h" = "$$b"; then \
95                                 found=1; \
96                         fi \
97                 done; \
98                 if test "$$found" = "0"; then \
99                         echo "$$h not found in HTMLFILES"; \
100                         exit 1; \
101                 fi \
102         done
103
104