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