upgrade instructions from Zewbra 1.3
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.51 2006-06-27 12:07:05 marc Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUBDIRS = common
5
6 XMLFILES =  \
7    administration.xml \
8    architecture.xml \
9    examples.xml \
10    idzebra-config-man.xml \
11    indexdata.xml \
12    installation.xml \
13    introduction.xml \
14    license.xml \
15    marc_indexing.xml \
16    querymodel.xml \
17    quickstart.xml \
18    recordmodel-alvisxslt.xml \
19    recordmodel-grs.xml \
20    server.xml \
21    zebra.xml \
22    zebraidx-commands.xml \
23    zebraidx-man.xml \
24    zebraidx-options.xml \
25    zebraidx.xml \
26    zebrasrv-man.xml \
27    zebrasrv-options.xml \
28    zebrasrv-synopsis.xml \
29    zebrasrv-virtual.xml
30
31 HTMLFILES =  \
32    administration-extended-services.html \
33    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    gfs-config.html \
48    grs-exchange-formats.html \
49    grs-internal-representation.html \
50    index.html \
51    indexdata.html \
52    installation.debian.html \
53    installation.html \
54    installation.win32.html \
55    installation-upgrade.html \
56    introduction.html \
57    license.html \
58    locating-records.html \
59    protocol-support.html \
60    querymodel-cql-to-pqf.html \
61    querymodel-pqf.html \
62    querymodel-zebra.html \
63    querymodel.html \
64    quick-start.html \
65    record-model-alvisxslt-conf.html \
66    record-model-alvisxslt.html \
67    record-model-grs-conf.html \
68    record-model-grs.html \
69    register-location.html \
70    server-sru-support.html \
71    server-sru.html \
72    server.html \
73    shadow-registers.html \
74    simple-indexing.html \
75    support.html \
76    zebraidx.html \
77    htmlhelp.hhp \
78    toc.hhc 
79
80
81 PNGFILES=zebra.png
82 EPSFILES=zebra.eps
83
84 MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
85
86 REFFILES=zebraidx-man.xml zebrasrv-man.xml idzebra-config-man.xml
87
88 doc_DATA = $(HTMLFILES) $(PNGFILES)
89 man_MANS = $(MANFILES)
90
91 EXTRA_DIST = $(XMLFILES) $(REFFILES) \
92         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
93         marc_indexing.xml entities.ent local.ent.in
94
95 zebraidx.1: zebraidx-man.xml zebraidx-options.xml zebraidx-commands.xml
96         $(MAN_COMPILE) $(srcdir)/zebraidx-man.xml
97
98 zebrasrv.8: zebrasrv-man.xml  zebrasrv-options.xml \
99             zebrasrv-synopsis.xml zebrasrv-virtual.xml
100         $(MAN_COMPILE) $(srcdir)/zebrasrv-man.xml
101
102 idzebra-config.1: idzebra-config-man.xml
103         $(MAN_COMPILE) $(srcdir)/idzebra-config-man.xml
104
105 $(HTMLFILES): $(XMLFILES)
106         $(HTML_COMPILE) $(srcdir)/zebra.xml
107
108 index.tkl: $(XMLFILES) common/tkl.xsl
109         $(TKL_COMPILE) $(srcdir)/zebra.xml
110
111 zebra.pdf: $(XMLFILES)
112         for i in $(PNGFILES); do \
113                 if test ! -f $$i; then cp $(srcdir)/$$i .; fi; \
114         done
115         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl zebra.xml
116         pdfjadetex zebra.tex >/dev/null
117         pdfjadetex zebra.tex >/dev/null
118         pdfjadetex zebra.tex >/dev/null
119
120 gils.txt: gils.sgml
121         sgml2txt -f gils.sgml
122
123 gils.ps: gils.sgml
124         sgml2latex -o ps -p a4 gils.sgml
125
126 gils.html: gils.sgml
127         sgml2html gils.sgml
128
129 clean-data-hook:
130         rm -f [0-9]* *.bak
131
132 dist-hook:
133         for f in *.html; do \
134                 found=0; \
135                 b=`basename $$f`; \
136                 for h in $(HTMLFILES); do \
137                         if test "$$h" = "$$b"; then \
138                                 found=1; \
139                         fi \
140                 done; \
141                 if test "$$found" = "0"; then \
142                         echo "$$f not found in HTMLFILES"; \
143                         exit 1; \
144                 fi \
145         done