1 # This file is part of Pazpar2.
4 SUFFIXES=.1 .5 .7 .8 .pdf .esp .xml
6 XMLFILES = book.xml manref.xml gpl-2.0.xml
8 MAINXML = $(srcdir)/book.xml
10 XMLMAN = pazpar2.xml pazpar2_protocol.xml pazpar2_conf.xml
12 SUPPORTFILES = entities.ent local.ent.in
14 MANFILES = pazpar2.8 pazpar2_protocol.7 pazpar2_conf.5
16 HTMLFILES = index.html
20 doc_DATA = $(HTMLFILES) $(PNGFILES)
21 man_MANS = $(MANFILES)
23 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS)
25 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
27 $(HTML_COMPILE) $(MAINXML)
41 pazpar2.pdf: $(XMLFILES)
43 $(PDF_COMPILE) $(MAINXML) && mv book.pdf pazpar2.pdf
45 jade-check: $(XMLFILES)
46 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
49 manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl
51 for i in $(XMLMAN); do \
52 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
59 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
60 for p in $$d/*.html; do \
65 rm -f manref.xml *.html *.[0-9] *.pdf
68 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
69 for p in $$d/*.html; do \
70 $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
74 rm -r $(DESTDIR)$(docdir)