Update HTMLFILES to fix 'make dist'
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.40 2006-02-19 15:10:04 adam 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    grs-record-model.html \
54    indexdata.html \
55    installation.debian.html \
56    installation.html \
57    installation.win32.html \
58    introduction.html \
59    license.html \
60    locating-records.html \
61    maincomponents.html \
62    protocol-support.html \
63    quick-start.html \
64    record-model.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    workflow.html \
77    zebra.html \
78    zebraidx.html
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.sgml zebrasrv-man.sgml idzebra-config-man.sgml
87
88 #doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
89 doc_DATA = $(HTMLFILES) $(PNGFILES)
90 man_MANS = $(MANFILES)
91
92 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
93         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
94         zvrank.txt marc_indexing.xml
95
96 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
97         if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
98         if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
99         docbook2man $(srcdir)/zebraidx-man.sgml
100
101 # zebrasrv-commands.xml
102 zebrasrv.8: zebrasrv-man.sgml  zebrasrv-options.xml \
103             zebrasrv-synopsis.xml zebrasrv-virtual.xml
104         docbook2man $(srcdir)/zebrasrv-man.sgml
105
106 idzebra-config.1: idzebra-config-man.sgml
107         docbook2man $(srcdir)/idzebra-config-man.sgml
108
109 $(HTMLFILES): $(XMLFILES)
110         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
111
112 zebra.php: $(XMLFILES)
113         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
114
115 zebra.pdf: $(XMLFILES)
116         for i in $(PNGFILES); do \
117                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
118         done
119         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
120         pdfjadetex zebra.tex >/dev/null
121         pdfjadetex zebra.tex >/dev/null
122         pdfjadetex zebra.tex >/dev/null
123
124 index.tkl: $(XMLFILES) tkl.xsl
125         xsltproc tkl.xsl zebra.xml
126
127 gils.txt: gils.sgml
128         sgml2txt -f gils.sgml
129
130 gils.ps: gils.sgml
131         sgml2latex -o ps -p a4 gils.sgml
132
133 gils.html: gils.sgml
134         sgml2html gils.sgml
135
136 clean-data-hook:
137         rm -f [0-9]* *.bak
138
139 dist-hook:
140         for f in $(srcdir)/*.html; do \
141                 found=0; \
142                 b=`basename $$f`; \
143                 for h in $(HTMLFILES); do \
144                         if test "$$h" = "$$b"; then \
145                                 found=1; \
146                         fi \
147                 done; \
148                 if test "$$found" = "0"; then \
149                         echo "$$f not found in HTMLFILES"; \
150                         exit 1; \
151                 fi \
152         done