1 ## $Id: Makefile.am,v 1.5 2007-06-18 12:55:43 adam Exp $
2 ## docdir=$(datadir)/doc/@PACKAGE@
6 SUFFIXES=.1 .5 .7 .8 .pdf .tkl .esp .xml
8 XMLFILES = book.xml manref.xml
10 MAINXML = $(srcdir)/book.xml
12 XMLMAN = pazpar2.xml pazpar2_protocol.xml pazpar2_conf.xml
14 SUPPORTFILES = entities.ent local.ent.in
16 MANFILES = pazpar2.8 pazpar2_protocol.7 pazpar2_conf.5
18 HTMLFILES = index.html
22 doc_DATA = $(HTMLFILES) $(PNGFILES)
23 man_MANS = $(MANFILES)
25 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS)
27 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
29 $(HTML_COMPILE) $(MAINXML)
43 index.tkl: $(XMLFILES)
44 $(TKL_COMPILE) $(MAINXML)
46 pazpar2.pdf: $(XMLFILES)
48 dblatex $(MAINXML) && mv book.pdf pazpar2.pdf
50 jade-check: $(XMLFILES)
51 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
54 manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl
56 for i in $(XMLMAN); do \
57 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
64 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
65 for p in $$d/*.html; do \
70 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
71 for p in $$d/*.html; do \
72 $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \
76 rm -r $(DESTDIR)/$(docdir)