1 ## $Id: Makefile.am,v 1.37 2006-02-16 12:32:31 marc Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
11 XMLFILES = zebra.xml.in \
21 recordmodel-alvisxslt.xml \
25 zebraidx-commands.xml \
26 zebraidx-options.xml \
28 zebrasrv-options.xml \
29 zebrasrv-synopsis.xml \
33 HTMLFILES = administration-ranking.html \
36 architecture-maincomponents.html \
37 architecture-workflow.html \
39 configuration-file.html \
47 grs-exchange-formats.html \
48 grs-internal-representation.html \
50 installation.debian.html \
52 installation.win32.html \
55 locating-records.html \
56 protocol-support.html \
58 record-model-alvisxslt-conf.html \
59 record-model-alvisxslt.html \
60 record-model-grs-conf.html \
61 record-model-grs.html \
62 register-location.html \
63 server-sru-support.html \
66 shadow-registers.html \
67 simple-indexing.html \
77 MANFILES=zebraidx.1 zebrasrv.8 idzebra-config.1
79 REFFILES=zebraidx-man.sgml zebrasrv-man.sgml idzebra-config-man.sgml
81 #doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
82 doc_DATA = $(HTMLFILES) $(PNGFILES)
83 man_MANS = $(MANFILES)
85 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
86 $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
87 zvrank.txt marc_indexing.xml
89 zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
90 if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
91 if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
92 docbook2man $(srcdir)/zebraidx-man.sgml
94 # zebrasrv-commands.xml
95 zebrasrv.8: zebrasrv-man.sgml zebrasrv-options.xml \
96 zebrasrv-synopsis.xml zebrasrv-virtual.xml
97 docbook2man $(srcdir)/zebrasrv-man.sgml
99 idzebra-config.1: idzebra-config-man.sgml
100 docbook2man $(srcdir)/idzebra-config-man.sgml
102 $(HTMLFILES): $(XMLFILES)
103 jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
105 zebra.php: $(XMLFILES)
106 jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
108 zebra.pdf: $(XMLFILES)
109 for i in $(PNGFILES); do \
110 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
112 jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
113 pdfjadetex zebra.tex >/dev/null
114 pdfjadetex zebra.tex >/dev/null
115 pdfjadetex zebra.tex >/dev/null
117 index.tkl: $(XMLFILES) tkl.xsl
118 xsltproc tkl.xsl zebra.xml
121 sgml2txt -f gils.sgml
124 sgml2latex -o ps -p a4 gils.sgml
133 for f in $(srcdir)/*.html; do \
136 for h in $(HTMLFILES); do \
137 if test "$$h" = "$$b"; then \
141 if test "$$found" = "0"; then \
142 echo "$$f not found in HTMLFILES"; \