Fixed bug #685: Optimize xelm/melm matching. Indexing the Koha collection
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.23.2.2 2006-08-14 13:37:18 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 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$(PACKAGE_SUFFIX).1 zebrasrv$(PACKAGE_SUFFIX).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$(PACKAGE_SUFFIX).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         mv zebraidx.1 zebraidx$(PACKAGE_SUFFIX).1
53
54 zebrasrv$(PACKAGE_SUFFIX).8: zebrasrv-man.sgml
55         docbook2man $(srcdir)/zebrasrv-man.sgml
56         mv zebrasrv.8 zebrasrv$(PACKAGE_SUFFIX).8
57
58 $(HTMLFILES): $(XMLFILES)
59         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
60
61 zebra.php: $(XMLFILES)
62         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
63
64 zebra.pdf: $(XMLFILES)
65         for i in $(PNGFILES); do \
66                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
67         done
68         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
69         pdfjadetex zebra.tex
70         pdfjadetex zebra.tex
71         pdfjadetex zebra.tex
72
73 index.tkl: $(XMLFILES) tkl.xsl
74         xsltproc tkl.xsl zebra.xml
75
76 gils.txt: gils.sgml
77         sgml2txt -f gils.sgml
78
79 gils.ps: gils.sgml
80         sgml2latex -o ps -p a4 gils.sgml
81
82 gils.html: gils.sgml
83         sgml2html gils.sgml
84
85 clean-data-hook:
86         rm -f [0-9]* *.bak
87
88 dist-hook:
89         for f in $(srcdir)/*.html; do \
90                 found=0; \
91                 b=`basename $$f`; \
92                 for h in $(HTMLFILES); do \
93                         if test "$$h" = "$$b"; then \
94                                 found=1; \
95                         fi \
96                 done; \
97                 if test "$$found" = "0"; then \
98                         echo "$$h not found in HTMLFILES"; \
99                         exit 1; \
100                 fi \
101         done
102
103 install-data-hook:
104         cd $(DESTDIR)$(man1dir) && ln -sf zebraidx$(PACKAGE_SUFFIX).1 zebraidx.1
105         cd $(DESTDIR)$(man8dir) && ln -sf zebrasrv$(PACKAGE_SUFFIX).8 zebrasrv.8