Removed the count function from the rset f-table, in preparation
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.23 2004-05-10 08:42:56 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUPPORTFILES = \
5  zebrahtml.dsl.in \
6  zebraphp.dsl.in \
7  zebraprint.dsl.in \
8  tkl.xsl.in \
9  xml.dcl
10 XMLFILES = \
11  zebra.xml.in \
12  introduction.xml \
13  installation.xml \
14  quickstart.xml \
15  examples.xml \
16  administration.xml \
17  zebraidx.xml \
18  server.xml \
19  recordmodel.xml \
20  license.xml \
21  indexdata.xml \
22  zebraidx-options.xml \
23  zebraidx-commands.xml
24
25 HTMLFILES =  \
26  administration.html apps.html configuration-file.html data-model.html \
27  example1.html example2.html examples.html features.html file-ids.html \
28  formats.html future.html generic-ids.html indexdata.html installation.html \
29  installation.win32.html internal-representation.html introduction.html \
30  license.html locating-records.html protocol-support.html quick-start.html \
31  record-model.html register-location.html server.html shadow-registers.html \
32  simple-indexing.html support.html zebra.html zebraidx.html 
33
34 PNGFILES=zebra.png
35 EPSFILES=zebra.eps
36
37 MANFILES=zebraidx.1 zebrasrv.8
38
39 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml
40
41 doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
42 man_MANS = $(MANFILES)
43
44 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
45         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
46         zvrank.txt marc_indexing.xml
47
48 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
49         if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
50         if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
51         docbook2man $(srcdir)/zebraidx-man.sgml
52
53 zebrasrv.8: zebrasrv-man.sgml
54         docbook2man $(srcdir)/zebrasrv-man.sgml
55
56 $(HTMLFILES): $(XMLFILES)
57         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
58
59 zebra.php: $(XMLFILES)
60         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
61
62 zebra.pdf: $(XMLFILES)
63         for i in $(PNGFILES); do \
64                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
65         done
66         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
67         pdfjadetex zebra.tex
68         pdfjadetex zebra.tex
69         pdfjadetex zebra.tex
70
71 index.tkl: $(XMLFILES) tkl.xsl
72         xsltproc tkl.xsl zebra.xml
73
74 gils.txt: gils.sgml
75         sgml2txt -f gils.sgml
76
77 gils.ps: gils.sgml
78         sgml2latex -o ps -p a4 gils.sgml
79
80 gils.html: gils.sgml
81         sgml2html gils.sgml
82
83 clean-data-hook:
84         rm -f [0-9]* *.bak
85
86 dist-hook:
87         for f in $(srcdir)/*.html; do \
88                 found=0; \
89                 b=`basename $$f`; \
90                 for h in $(HTMLFILES); do \
91                         if test "$$h" = "$$b"; then \
92                                 found=1; \
93                         fi \
94                 done; \
95                 if test "$$found" = "0"; then \
96                         echo "$$h not found in HTMLFILES"; \
97                         exit 1; \
98                 fi \
99         done
100
101