1 ## $Id: Makefile.am,v 1.14 2006-04-27 16:38:13 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
8 XMLFILES = main.xml.in book.xml manref.xml progref.xml copyright.xml \
13 XMLMAN = auth_simple.xml backend_test.xml frontend_net.xml \
14 http_file.xml log.xml multi.xml query_rewrite.xml \
15 session_shared.xml template.xml virt_db.xml z3950_client.xml
16 MANFILES = auth_simple.3mp backend_test.3mp frontend_net.3mp \
17 http_file.3mp log.3mp multi.3mp query_rewrite.3mp \
18 session_shared.3mp template.3mp virt_db.3mp z3950_client.3mp \
21 HTMLFILES = architecture.html \
24 example.configuration.html \
28 future.directions.html \
29 individual.classes.html \
31 installation.debian.html \
32 installation.windows.html \
37 multidb.virt_db.html \
38 multidb.picture.html \
39 other.source.files.html \
40 overview.filter.types.html \
41 overview.xml.structure.html \
46 doc_DATA = $(HTMLFILES) metaproxy.pdf $(PNGFILES)
47 man_MANS = $(MANFILES)
49 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(man_MANS) multi.svg
51 $(HTMLFILES): $(XMLFILES) multi.png
52 jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(MAINXML)
60 metaproxy.pdf: $(XMLFILES) multi.pdf
61 for i in $(PNGFILES) multi.pdf; do \
62 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
64 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
66 mv main.tex metaproxy.tex
67 pdfjadetex metaproxy.tex >/dev/null
68 pdfjadetex metaproxy.tex >/dev/null
69 pdfjadetex metaproxy.tex >/dev/null
71 index.tkl: $(XMLFILES) common/tkl.xsl
72 xsltproc common/tkl.xsl $(MAINXML)
74 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
76 for i in $(XMLMAN); do \
77 xsltproc $(srcdir)/common/ref2dbinc.xsl $$i | sed 1d >> manref.xml; \
80 progref.xml: metaproxy.xml
82 xsltproc $(srcdir)/common/ref2dbinc.xsl $? | sed 1d >> $@
85 inkscape --export-png=$@ --export-width=800 --export-area-drawing $?
88 inkscape --export-eps=$@ --export-bbox-page $?
97 for f in $(srcdir)/*.html; do \
100 for h in $(HTMLFILES); do \
101 if test "$$h" = "$$b"; then \
105 if test "$$found" = "0"; then \
106 echo "$$f not found in HTMLFILES"; \