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