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