1 ## $Id: Makefile.am,v 1.65 2007-02-21 12:29:52 marc Exp $
2 docdir=$(datadir)/doc/$(PACKAGE)$(PACKAGE_SUFFIX)
6 XMLMAN = zebraidx.xml zebrasrv.xml idzebra-config.xml
20 recordmodel-domxml.xml \
21 recordmodel-alvisxslt.xml \
25 zebrasrv-options.xml \
26 zebrasrv-synopsis.xml \
29 HTMLFILES = index.html
31 PNGFILES=zebra.png domfilter.png
33 PDFFILES=zebra.pdf domfilter.pdf
36 MANFILES=zebraidx$(PACKAGE_SUFFIX).1 \
37 zebrasrv$(PACKAGE_SUFFIX).8 \
38 idzebra-config$(PACKAGE_SUFFIX).1
40 doc_DATA = $(HTMLFILES) $(PNGFILES) $(PDFFILES)
41 man_MANS = $(MANFILES)
43 EXTRA_DIST = $(XMLFILES) $(XMLMAN) \
44 $(doc_DATA) $(EPSFILES) $(man_MANS) \
45 marc_indexing.xml entities.ent local.ent.in
47 zebraidx$(PACKAGE_SUFFIX).1: zebraidx.xml
48 $(MAN_COMPILE) $(srcdir)/zebraidx.xml
49 mv zebraidx.1 zebraidx$(PACKAGE_SUFFIX).1
51 zebrasrv$(PACKAGE_SUFFIX).8: zebrasrv.xml zebrasrv-options.xml \
52 zebrasrv-synopsis.xml zebrasrv-virtual.xml
53 $(MAN_COMPILE) $(srcdir)/zebrasrv.xml
54 mv zebrasrv.8 zebrasrv$(PACKAGE_SUFFIX).8
56 idzebra-config$(PACKAGE_SUFFIX).1: idzebra-config.xml
57 $(MAN_COMPILE) $(srcdir)/idzebra-config.xml
58 mv idzebra-config.1 idzebra-config$(PACKAGE_SUFFIX).1
60 $(HTMLFILES): $(XMLFILES)
62 $(HTML_COMPILE) $(srcdir)/zebra.xml
64 index.tkl: $(XMLFILES)
66 $(TKL_COMPILE) $(srcdir)/zebra.xml
68 zebra.pdf: $(XMLFILES)
69 for i in $(PNGFILES); do \
70 if test ! -f $$i; then cp $(srcdir)/$$i .; fi; \
72 dblatex $(srcdir)/zebra.xml
74 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
76 for i in $(XMLMAN); do \
77 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
84 sgml2latex -o ps -p a4 gils.sgml
93 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
94 for p in $$d/*.html; do \
99 cd $(DESTDIR)$(man1dir) && ln -sf zebraidx$(PACKAGE_SUFFIX).1 zebraidx.1
100 cd $(DESTDIR)$(man8dir) && ln -sf zebrasrv$(PACKAGE_SUFFIX).8 zebrasrv.8
101 cd $(DESTDIR)$(man1dir) && ln -sf idzebra-config$(PACKAGE_SUFFIX).1 idzebra-config.1
102 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
103 for p in $$d/*.html; do \
104 $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \
108 rm -r $(DESTDIR)/$(docdir)
110 domfilter.png: domfilter.svg
111 inkscape --export-png=$@ --export-width=600 --export-area-drawing $?
113 domfilter.eps: domfilter.svg
114 inkscape --export-eps=$@ --export-bbox-page $?