Let configure generate doc/local.ent rather than doc/zebra.xml .
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.46 2006-05-30 23:08:29 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUBDIRS = common
5
6 XMLFILES =  zebra.xml \
7    administration.xml \
8    architecture.xml \
9    examples.xml \
10    indexdata.xml \
11    installation.xml \
12    introduction.xml \
13    license.xml \
14    marc_indexing.xml \
15    quickstart.xml \
16    recordmodel-alvisxslt.xml \
17    recordmodel-grs.xml \
18    server.xml \
19    zebraidx-commands.xml \
20    zebraidx-options.xml \
21    zebraidx.xml \
22    zebrasrv-options.xml \
23    zebrasrv-synopsis.xml \
24    zebrasrv-virtual.xml
25
26 HTMLFILES =  \
27    administration-cql-to-pqf.html \
28    administration-extended-services.html \
29    administration-ranking.html \
30    administration.html \
31    apps.html \
32    architecture-maincomponents.html \
33    architecture-workflow.html \
34    architecture.html \
35    configuration-file.html \
36    example1.html \
37    example2.html \
38    examples.html \
39    features.html \
40    file-ids.html \
41    future.html \
42    generic-ids.html \
43    gfs-config.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    protocol-support.html \
54    quick-start.html \
55    record-model-alvisxslt-conf.html \
56    record-model-alvisxslt.html \
57    record-model-grs-conf.html \
58    record-model-grs.html \
59    register-location.html \
60    server-sru-support.html \
61    server-sru.html \
62    server.html \
63    shadow-registers.html \
64    simple-indexing.html \
65    support.html \
66    index.html \
67    zebraidx.html
68
69 PNGFILES=zebra.png
70 EPSFILES=zebra.eps
71
72 MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
73
74 REFFILES=zebraidx-man.xml zebrasrv-man.xml idzebra-config-man.xml
75
76 doc_DATA = $(HTMLFILES) $(PNGFILES)
77 man_MANS = $(MANFILES)
78
79 EXTRA_DIST = $(XMLFILES) $(REFFILES) \
80         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
81         zvrank.txt marc_indexing.xml entities.ent local.ent.in
82
83 zebraidx.1: zebraidx-man.xml zebraidx-options.xml zebraidx-commands.xml
84         $(MAN_COMPILE) $(srcdir)/zebraidx-man.xml
85
86 zebrasrv.8: zebrasrv-man.xml  zebrasrv-options.xml \
87             zebrasrv-synopsis.xml zebrasrv-virtual.xml
88         $(MAN_COMPILE) $(srcdir)/zebrasrv-man.xml
89
90 idzebra-config.1: idzebra-config-man.xml
91         $(MAN_COMPILE) $(srcdir)/idzebra-config-man.xml
92
93 $(HTMLFILES): $(XMLFILES)
94         $(HTML_COMPILE) $(srcdir)/zebra.xml
95
96 index.tkl: $(XMLFILES) common/tkl.xsl
97         $(TKL_COMPILE) $(srcdir)/zebra.xml
98
99 zebra.pdf: $(XMLFILES)
100         for i in $(PNGFILES); do \
101                 if test ! -f $$i; then cp $(srcdir)/$$i .; fi; \
102         done
103         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl zebra.xml
104         pdfjadetex zebra.tex >/dev/null
105         pdfjadetex zebra.tex >/dev/null
106         pdfjadetex zebra.tex >/dev/null
107
108 gils.txt: gils.sgml
109         sgml2txt -f gils.sgml
110
111 gils.ps: gils.sgml
112         sgml2latex -o ps -p a4 gils.sgml
113
114 gils.html: gils.sgml
115         sgml2html gils.sgml
116
117 clean-data-hook:
118         rm -f [0-9]* *.bak
119
120 dist-hook:
121         for f in *.html; do \
122                 found=0; \
123                 b=`basename $$f`; \
124                 for h in $(HTMLFILES); do \
125                         if test "$$h" = "$$b"; then \
126                                 found=1; \
127                         fi \
128                 done; \
129                 if test "$$found" = "0"; then \
130                         echo "$$f not found in HTMLFILES"; \
131                         exit 1; \
132                 fi \
133         done