1 ## $Id: Makefile.am,v 1.25 2006-11-27 11:34:52 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
14 TOP = $(srcdir)/yazpp.xml
16 MANFILES = yazpp-config.8
18 REFFILES = yazpp-config-man.xml
20 HTMLFILES = index.html
22 doc_DATA = $(HTMLFILES)
24 man_MANS = $(MANFILES)
26 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \
27 entities.ent local.ent.in
29 $(HTMLFILES): $(XMLFILES)
31 $(HTML_COMPILE) $(TOP)
33 index.tkl: $(XMLFILES)
36 yazpp-config.8: yazpp-config-man.xml
37 $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml
39 yazpp.pdf: $(XMLFILES)
40 if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
41 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
42 pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
43 pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
44 pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
51 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
52 for p in $$d/*.html; do \
57 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
58 for p in $$d/*.html; do \
59 $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \
63 rm -r $(DESTDIR)/$(docdir)