Removed zebra.xml from XMLFILES (was added in 1.30). If it is present
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.33 2006-01-23 13:59:48 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    zebraidx-commands.xml \
25    zebraidx-options.xml \
26    zebraidx.xml \
27    zebrasrv-options.xml \
28    zebrasrv-synopsis.xml \
29    zebrasrv-virtual.xml
30
31 HTMLFILES =  \
32    administration.html \
33    apps.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    grs-exchange-formats.html \
44    grs-internal-representation.html \
45    grs-record-model.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    maincomponents.html \
54    protocol-support.html \
55    quick-start.html \
56    record-model.html \
57    register-location.html \
58    server.html \
59    shadow-registers.html \
60    simple-indexing.html \
61    support.html \
62    workflow.html \
63    zebra.html \
64    zebraidx.html
65
66
67
68 PNGFILES=zebra.png
69 EPSFILES=zebra.eps
70
71 MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
72
73 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml idzebra-config-man.sgml
74
75 doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
76 man_MANS = $(MANFILES)
77
78 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
79         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
80         zvrank.txt marc_indexing.xml
81
82 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
83         if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
84         if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
85         docbook2man $(srcdir)/zebraidx-man.sgml
86
87 # zebrasrv-commands.xml
88 zebrasrv.8: zebrasrv-man.sgml  zebrasrv-options.xml \
89             zebrasrv-synopsis.xml zebrasrv-virtual.xml
90         docbook2man $(srcdir)/zebrasrv-man.sgml
91
92 idzebra-config.1: idzebra-config-man.sgml
93         docbook2man $(srcdir)/idzebra-config-man.sgml
94
95 $(HTMLFILES): $(XMLFILES)
96         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
97
98 zebra.php: $(XMLFILES)
99         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
100
101 zebra.pdf: $(XMLFILES)
102         for i in $(PNGFILES); do \
103                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
104         done
105         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
106         pdfjadetex zebra.tex >/dev/null
107         pdfjadetex zebra.tex >/dev/null
108         pdfjadetex zebra.tex >/dev/null
109
110 index.tkl: $(XMLFILES) tkl.xsl
111         xsltproc tkl.xsl zebra.xml
112
113 gils.txt: gils.sgml
114         sgml2txt -f gils.sgml
115
116 gils.ps: gils.sgml
117         sgml2latex -o ps -p a4 gils.sgml
118
119 gils.html: gils.sgml
120         sgml2html gils.sgml
121
122 clean-data-hook:
123         rm -f [0-9]* *.bak
124
125 dist-hook:
126         for f in $(srcdir)/*.html; do \
127                 found=0; \
128                 b=`basename $$f`; \
129                 for h in $(HTMLFILES); do \
130                         if test "$$h" = "$$b"; then \
131                                 found=1; \
132                         fi \
133                 done; \
134                 if test "$$found" = "0"; then \
135                         echo "$$f not found in HTMLFILES"; \
136                         exit 1; \
137                 fi \
138         done