3 docdir=$(datadir)/doc/$(PACKAGE)$(PACKAGE_SUFFIX)
5 XMLMAN = zebraidx.xml zebrasrv.xml idzebra-config.xml
17 recordmodel-domxml.xml \
18 recordmodel-alvisxslt.xml \
22 zebrasrv-options.xml \
23 zebrasrv-synopsis.xml \
30 HTMLFILES = index.html
32 PNGFILES = zebra.png domfilter.png
33 EPSFILES = zebra.eps domfilter.eps
34 PDFFILES = zebra.pdf domfilter.pdf
37 MANFILES=zebraidx$(PACKAGE_SUFFIX).1 \
38 zebrasrv$(PACKAGE_SUFFIX).8 \
39 idzebra-config$(PACKAGE_SUFFIX).1
41 doc_DATA = $(HTMLFILES) $(PNGFILES)
42 man_MANS = $(MANFILES)
44 EXTRA_DIST = $(XMLFILES) $(XMLMAN) \
45 $(doc_DATA) zebra.eps $(man_MANS) \
46 marc_indexing.xml entities.ent local.ent.in domfilter.svg
48 zebraidx$(PACKAGE_SUFFIX).1: zebraidx.xml
49 $(MAN_COMPILE) $(srcdir)/zebraidx.xml
50 mv zebraidx.1 zebraidx$(PACKAGE_SUFFIX).1
52 zebrasrv$(PACKAGE_SUFFIX).8: zebrasrv.xml zebrasrv-options.xml \
53 zebrasrv-synopsis.xml zebrasrv-virtual.xml
54 $(MAN_COMPILE) $(srcdir)/zebrasrv.xml
55 mv zebrasrv.8 zebrasrv$(PACKAGE_SUFFIX).8
57 idzebra-config$(PACKAGE_SUFFIX).1: idzebra-config.xml
58 $(MAN_COMPILE) $(srcdir)/idzebra-config.xml
59 mv idzebra-config.1 idzebra-config$(PACKAGE_SUFFIX).1
61 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
63 $(HTML_COMPILE) $(srcdir)/zebra.xml
65 index.tkl: $(XMLFILES)
67 $(TKL_COMPILE) $(srcdir)/zebra.xml
69 zebra.pdf: $(XMLFILES) domfilter.pdf
70 for i in $(PNGFILES); do \
71 if test ! -f $$i; then cp $(srcdir)/$$i .; fi; \
73 dblatex $(srcdir)/zebra.xml
75 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
77 for i in $(XMLMAN); do \
78 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
85 sgml2latex -o ps -p a4 gils.sgml
94 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
95 for p in $$d/*.html; do \
100 cd $(DESTDIR)$(man1dir) && ln -sf zebraidx$(PACKAGE_SUFFIX).1 zebraidx.1
101 cd $(DESTDIR)$(man8dir) && ln -sf zebrasrv$(PACKAGE_SUFFIX).8 zebrasrv.8
102 cd $(DESTDIR)$(man1dir) && ln -sf idzebra-config$(PACKAGE_SUFFIX).1 idzebra-config.1
103 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
104 for p in $$d/*.html; do \
105 $(docDATA_INSTALL) $$p $(DESTDIR)$(docdir); \
109 rm -r $(DESTDIR)$(docdir)
111 domfilter.png: domfilter.svg
112 inkscape --export-png=$@ --export-width=600 $?
114 domfilter.eps: domfilter.svg
115 inkscape --export-eps=$@ --export-bbox-page $?