added sections on alvis filter configuration, not finished yet
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.36 2006-02-15 14:57:48 marc 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
11 XMLFILES =  zebra.xml.in \
12    administration.xml \
13    architecture.xml \
14    examples.xml \
15    indexdata.xml \
16    installation.xml \
17    introduction.xml \
18    license.xml \
19    marc_indexing.xml \
20    quickstart.xml \
21    recordmodel-alvisxslt.xml \
22    recordmodel-grs.xml \
23    server.xml \
24    zebra.xml \
25    zebraidx-commands.xml \
26    zebraidx-options.xml \
27    zebraidx.xml \
28    zebrasrv-options.xml \
29    zebrasrv-synopsis.xml \
30    zebrasrv-virtual.xml
31
32
33 HTMLFILES = administration-ranking.html \
34    administration.html \
35    apps.html \
36    architecture-maincomponents.html \
37    architecture-workflow.html \
38    architecture.html \
39    configuration-file.html \
40    example1.html \
41    example2.html \
42    examples.html \
43    features.html \
44    file-ids.html \
45    future.html \
46    generic-ids.html \
47    grs-exchange-formats.html \
48    grs-internal-representation.html \
49    indexdata.html \
50    installation.debian.html \
51    installation.html \
52    installation.win32.html \
53    introduction.html \
54    license.html \
55    locating-records.html \
56    protocol-support.html \
57    quick-start.html \
58    record-model-alvisxslt-conf.html \
59    record-model-alvisxslt.html \
60    record-model-grs-conf.html \
61    record-model-grs.html \
62    register-location.html \
63    server-sru-support.html \
64    server-sru.html \
65    server.html \
66    shadow-registers.html \
67    simple-indexing.html \
68    support.html \
69    zebra.html \
70    zebraidx.html
71
72
73 PNGFILES=zebra.png
74 EPSFILES=zebra.eps
75
76 MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
77
78 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml idzebra-config-man.sgml
79
80 #doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
81 doc_DATA = $(HTMLFILES) $(PNGFILES)
82 man_MANS = $(MANFILES)
83
84 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
85         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
86         zvrank.txt marc_indexing.xml
87
88 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
89         if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
90         if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
91         docbook2man $(srcdir)/zebraidx-man.sgml
92
93 # zebrasrv-commands.xml
94 zebrasrv.8: zebrasrv-man.sgml  zebrasrv-options.xml \
95             zebrasrv-synopsis.xml zebrasrv-virtual.xml
96         docbook2man $(srcdir)/zebrasrv-man.sgml
97
98 idzebra-config.1: idzebra-config-man.sgml
99         docbook2man $(srcdir)/idzebra-config-man.sgml
100
101 $(HTMLFILES): $(XMLFILES)
102         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
103
104 zebra.php: $(XMLFILES)
105         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
106
107 zebra.pdf: $(XMLFILES)
108         for i in $(PNGFILES); do \
109                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
110         done
111         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
112         pdfjadetex zebra.tex >/dev/null
113         pdfjadetex zebra.tex >/dev/null
114         pdfjadetex zebra.tex >/dev/null
115
116 index.tkl: $(XMLFILES) tkl.xsl
117         xsltproc tkl.xsl zebra.xml
118
119 gils.txt: gils.sgml
120         sgml2txt -f gils.sgml
121
122 gils.ps: gils.sgml
123         sgml2latex -o ps -p a4 gils.sgml
124
125 gils.html: gils.sgml
126         sgml2html gils.sgml
127
128 clean-data-hook:
129         rm -f [0-9]* *.bak
130
131 dist-hook:
132         for f in $(srcdir)/*.html; do \
133                 found=0; \
134                 b=`basename $$f`; \
135                 for h in $(HTMLFILES); do \
136                         if test "$$h" = "$$b"; then \
137                                 found=1; \
138                         fi \
139                 done; \
140                 if test "$$found" = "0"; then \
141                         echo "$$f not found in HTMLFILES"; \
142                         exit 1; \
143                 fi \
144         done