3 SUFFIXES=.3mp .1 .pdf .tkl .esp .xml
5 XMLFILES = book.xml manref.xml copyright.xml
7 MAINXML = $(srcdir)/book.xml
9 XMLMAN = metaproxy.xml \
28 MANFILES = metaproxy.1 \
37 multi.3mp query_rewrite.3mp \
47 HTMLFILES = index.html
49 # testing if this does the job of collecting up the unnamed '*.html' files
50 #UNLISTEDHTML = $(wildcard *.html)
54 doc_DATA = $(HTMLFILES) $(PNGFILES)
55 man_MANS = $(MANFILES)
57 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg
59 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
61 $(HTML_COMPILE) $(MAINXML)
69 index.tkl: $(XMLFILES)
70 $(TKL_COMPILE) $(MAINXML)
72 metaproxy.pdf: $(XMLFILES) multi.pdf
73 for i in $(PNGFILES) common/id.png multi.pdf; do \
74 if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \
77 mv book.pdf metaproxy.pdf
79 metaproxyj.pdf: $(XMLFILES) multi.pdf
80 for i in $(PNGFILES) common/id.png multi.pdf; do \
81 if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \
83 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
87 mv book.pdf metaproxyj.pdf
89 manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl
91 for i in $(XMLMAN); do \
92 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
96 inkscape --export-png=$@ --export-area=0:0:1050:500 $?
99 inkscape --export-eps=$@ --export-bbox-page $?
109 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
110 for p in $$d/*.html; do \
115 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
116 for p in $$d/*.html; do \
117 $(docDATA_INSTALL) $$p $(DESTDIR)$(docdir); \
121 rm -r $(DESTDIR)$(docdir)