updated the zebrasrv man page by copying relevant files over from yaz documentation...
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.27 2005-08-05 14:39:12 marc 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  zebrasrv-options.xml \
25  zebrasrv-synopsis.xml \
26  zebrasrv-virtual.xml
27
28 # zebrasrv-commands.xml \
29
30
31 HTMLFILES =  \
32  administration.html apps.html configuration-file.html data-model.html \
33  example1.html example2.html examples.html features.html file-ids.html \
34  formats.html future.html generic-ids.html indexdata.html installation.html \
35  installation.win32.html internal-representation.html introduction.html \
36  license.html locating-records.html protocol-support.html quick-start.html \
37  record-model.html register-location.html server.html shadow-registers.html \
38  simple-indexing.html support.html zebra.html zebraidx.html 
39
40 PNGFILES=zebra.png
41 EPSFILES=zebra.eps
42
43 MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
44
45 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml idzebra-config-man.sgml
46
47 doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
48 man_MANS = $(MANFILES)
49
50 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
51         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
52         zvrank.txt marc_indexing.xml
53
54 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
55         if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
56         if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
57         docbook2man $(srcdir)/zebraidx-man.sgml
58
59 # zebrasrv-commands.xml
60 zebrasrv.8: zebrasrv-man.sgml  zebrasrv-options.xml \
61             zebrasrv-synopsis.xml zebrasrv-virtual.xml
62         docbook2man $(srcdir)/zebrasrv-man.sgml
63
64 idzebra-config.1: idzebra-config-man.sgml
65         docbook2man $(srcdir)/idzebra-config-man.sgml
66
67 $(HTMLFILES): $(XMLFILES)
68         jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
69
70 zebra.php: $(XMLFILES)
71         jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
72
73 zebra.pdf: $(XMLFILES)
74         for i in $(PNGFILES); do \
75                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
76         done
77         jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
78         pdfjadetex zebra.tex >/dev/null
79         pdfjadetex zebra.tex >/dev/null
80         pdfjadetex zebra.tex >/dev/null
81
82 index.tkl: $(XMLFILES) tkl.xsl
83         xsltproc tkl.xsl zebra.xml
84
85 gils.txt: gils.sgml
86         sgml2txt -f gils.sgml
87
88 gils.ps: gils.sgml
89         sgml2latex -o ps -p a4 gils.sgml
90
91 gils.html: gils.sgml
92         sgml2html gils.sgml
93
94 clean-data-hook:
95         rm -f [0-9]* *.bak
96
97 dist-hook:
98         for f in $(srcdir)/*.html; do \
99                 found=0; \
100                 b=`basename $$f`; \
101                 for h in $(HTMLFILES); do \
102                         if test "$$h" = "$$b"; then \
103                                 found=1; \
104                         fi \
105                 done; \
106                 if test "$$found" = "0"; then \
107                         echo "$$h not found in HTMLFILES"; \
108                         exit 1; \
109                 fi \
110         done
111
112