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