1 ## $Id: Makefile.am,v 1.36 2007-01-18 11:32:42 marc Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
6 SUFFIXES=.3mp .1 .pdf .tkl .esp .xml
8 XMLFILES = book.xml manref.xml copyright.xml
10 MAINXML = $(srcdir)/book.xml
12 XMLMAN = metaproxy.xml \
31 MANFILES = metaproxy.1 \
40 multi.3mp query_rewrite.3mp \
50 HTMLFILES = index.html
52 # testing if this does the job of collecting up the unnamed '*.html' files
53 #UNLISTEDHTML = $(wildcard *.html)
57 doc_DATA = $(HTMLFILES) $(PNGFILES)
58 man_MANS = $(MANFILES)
60 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg
62 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
64 $(HTML_COMPILE) $(MAINXML)
72 index.tkl: $(XMLFILES)
73 $(TKL_COMPILE) $(MAINXML)
75 metaproxy.pdf: $(XMLFILES) multi.pdf
76 for i in $(PNGFILES) common/id.png multi.pdf; do \
77 if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \
80 mv book.pdf metaproxy.pdf
82 manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl
84 for i in $(XMLMAN); do \
85 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
89 inkscape --export-png=$@ --export-width=800 --export-area-drawing $?
92 inkscape --export-eps=$@ --export-bbox-page $?
102 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
103 for p in $$d/*.html; do \
108 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
109 for p in $$d/*.html; do \
110 $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \
114 rm -r $(DESTDIR)/$(docdir)