Zebra logo
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.21 2003-05-19 21:38:40 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
24 HTMLFILES =  \
25  administration.html apps.html configuration-file.html data-model.html \
26  example1.html example2.html examples.html features.html file-ids.html \
27  formats.html future.html generic-ids.html indexdata.html installation.html \
28  installation.win32.html internal-representation.html introduction.html \
29  license.html locating-records.html protocol-support.html quick-start.html \
30  record-model.html register-location.html server.html shadow-registers.html \
31  simple-indexing.html support.html zebra.html zebraidx.html 
32
33 PNGFILES=zebra.png
34 EPSFILES=zebra.eps
35
36 MANFILES=zebraidx.1 zebrasrv.8
37
38 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml
39
40 doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
41 man_MANS = $(MANFILES)
42
43 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
44         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
45         zvrank.txt marc_indexing.xml
46
47 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml
48         if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
49         docbook2man $(srcdir)/zebraidx-man.sgml
50
51 zebrasrv.8: zebrasrv-man.sgml
52         docbook2man $(srcdir)/zebrasrv-man.sgml
53
54 $(HTMLFILES): $(XMLFILES)
55         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
56
57 zebra.php: $(XMLFILES)
58         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
59
60 zebra.pdf: $(XMLFILES)
61         for i in $(PNGFILES); do \
62                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
63         done
64         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
65         pdfjadetex zebra.tex
66         pdfjadetex zebra.tex
67         pdfjadetex zebra.tex
68
69 index.tkl: $(XMLFILES) tkl.xsl
70         xsltproc tkl.xsl zebra.xml
71
72 gils.txt: gils.sgml
73         sgml2txt -f gils.sgml
74
75 gils.ps: gils.sgml
76         sgml2latex -o ps -p a4 gils.sgml
77
78 gils.html: gils.sgml
79         sgml2html gils.sgml
80
81 #dist-hook: zebra.html
82 #       cp *.html $(distdir)
83
84 clean-data-hook:
85         rm -f [0-9]* *.bak
86