1 ## $Id: Makefile.am,v 1.40 2007-07-10 09:43:06 adam Exp $
4 SUFFIXES=.3mp .1 .pdf .tkl .esp .xml
6 XMLFILES = book.xml manref.xml copyright.xml
8 MAINXML = $(srcdir)/book.xml
10 XMLMAN = metaproxy.xml \
29 MANFILES = metaproxy.1 \
38 multi.3mp query_rewrite.3mp \
48 HTMLFILES = index.html
50 # testing if this does the job of collecting up the unnamed '*.html' files
51 #UNLISTEDHTML = $(wildcard *.html)
55 doc_DATA = $(HTMLFILES) $(PNGFILES)
56 man_MANS = $(MANFILES)
58 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg
60 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
62 $(HTML_COMPILE) $(MAINXML)
70 index.tkl: $(XMLFILES)
71 $(TKL_COMPILE) $(MAINXML)
73 metaproxy.pdf: $(XMLFILES) multi.pdf
74 for i in $(PNGFILES) common/id.png multi.pdf; do \
75 if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \
78 mv book.pdf metaproxy.pdf
80 metaproxyj.pdf: $(XMLFILES) multi.pdf
81 for i in $(PNGFILES) common/id.png multi.pdf; do \
82 if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \
84 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
88 mv book.pdf metaproxyj.pdf
90 manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl
92 for i in $(XMLMAN); do \
93 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
97 inkscape --export-png=$@ --export-area=0:0:1050:500 $?
100 inkscape --export-eps=$@ --export-bbox-page $?
110 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
111 for p in $$d/*.html; do \
116 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
117 for p in $$d/*.html; do \
118 $(docDATA_INSTALL) $$p $(DESTDIR)$(docdir); \
122 rm -r $(DESTDIR)$(docdir)