+doc_DATA = $(HTMLFILES) zebra.pdf $(PNGFILES)
+man_MANS = $(MANFILES)
+
+EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(REFFILES) \
+ $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
+ zvrank.txt marc_indexing.xml
+
+zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
+ if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
+ if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
+ docbook2man $(srcdir)/zebraidx-man.sgml
+
+zebrasrv.8: zebrasrv-man.sgml
+ docbook2man $(srcdir)/zebrasrv-man.sgml
+
+idzebra-config.1: idzebra-config-man.sgml
+ docbook2man $(srcdir)/idzebra-config-man.sgml
+
+$(HTMLFILES): $(XMLFILES)
+ jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
+
+zebra.php: $(XMLFILES)
+ jade -E14 -D $(srcdir) -d zebraphp.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
+
+zebra.pdf: $(XMLFILES)
+ for i in $(PNGFILES); do \
+ if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
+ done
+ jade -E14 -D $(srcdir) -d zebraprint.dsl -t tex $(srcdir)/xml.dcl zebra.xml
+ pdfjadetex zebra.tex >/dev/null
+ pdfjadetex zebra.tex >/dev/null
+ pdfjadetex zebra.tex >/dev/null
+
+index.tkl: $(XMLFILES) tkl.xsl
+ xsltproc tkl.xsl zebra.xml