5 SUFFIXES=.3mp .1 .pdf .tkl .esp .xml
7 XMLFILES = book.xml manref.xml copyright.xml gpl-2.0.xml local.ent
9 MAINXML = $(srcdir)/book.xml
11 XMLMAN = metaproxy.xml \
12 metaproxy-config.xml \
35 MANFILES = metaproxy.1 \
47 multi.3mp query_rewrite.3mp \
58 HTMLFILES = index.html
60 # testing if this does the job of collecting up the unnamed '*.html' files
61 #UNLISTEDHTML = $(wildcard *.html)
65 doc_DATA = $(HTMLFILES) $(PNGFILES)
66 man_MANS = $(MANFILES)
68 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg
70 $(MANFILES): local.ent
72 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
74 $(HTML_COMPILE) $(MAINXML)
82 index.tkl: $(XMLFILES)
83 $(TKL_COMPILE) $(MAINXML)
85 metaproxy.pdf: $(XMLFILES) multi.pdf
86 for i in $(PNGFILES) common/id.png multi.pdf; do \
87 if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \
89 $(PDF_COMPILE) $(MAINXML)
90 mv book.pdf metaproxy.pdf
92 metaproxyj.pdf: $(XMLFILES) multi.pdf
93 for i in $(PNGFILES) common/id.png multi.pdf; do \
94 if test ! -f $$i; then cp $(srcdir)/$$i $$i; fi; \
96 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
100 mv book.pdf metaproxyj.pdf
102 manref.xml: $(XMLMAN) $(srcdir)/common/stripref.xsl $(srcdir)/copyright.xml
104 for i in $(XMLMAN); do \
105 xsltproc --xinclude $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
110 unset DISPLAY; ${INKSCAPE} --export-png=$@ --export-area=0:0:1050:500 $?
113 unset DISPLAY; ${INKSCAPE} --export-eps=$@ --export-area-page $?
123 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
124 for p in $$d/*.html; do \
129 rm -f manref.xml *.html *.[0-9] *.?mp *.pdf *.tkl
132 if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
133 for p in $$d/*.html; do \
134 $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
138 rm -r $(DESTDIR)$(docdir)