1 ## $Id: Makefile.am,v 1.9 2006-04-22 13:29:37 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 \
34 other.source.files.html \
35 overview.filter.types.html \
36 overview.xml.structure.html \
42 doc_DATA = $(HTMLFILES) metaproxy.pdf $(PNGFILES)
43 man_MANS = $(MANFILES)
45 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(EPSFILES) $(man_MANS)
47 $(HTMLFILES): $(XMLFILES)
48 jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(MAINXML)
56 metaproxy.pdf: $(XMLFILES)
57 for i in $(PNGFILES) $(EPSFILES); do \
58 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
60 jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
62 mv main.tex metaproxy.tex
63 pdfjadetex metaproxy.tex >/dev/null
64 pdfjadetex metaproxy.tex >/dev/null
65 pdfjadetex metaproxy.tex >/dev/null
67 index.tkl: $(XMLFILES) common/tkl.xsl
68 xsltproc common/tkl.xsl $(MAINXML)
70 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
72 for i in $(XMLMAN); do \
73 xsltproc $(srcdir)/common/ref2dbinc.xsl $$i | sed 1d >> manref.xml; \
76 progref.xml: metaproxy.xml
78 xsltproc $(srcdir)/common/ref2dbinc.xsl $? | sed 1d >> $@
84 for f in $(srcdir)/*.html; do \
87 for h in $(HTMLFILES); do \
88 if test "$$h" = "$$b"; then \
92 if test "$$found" = "0"; then \
93 echo "$$f not found in HTMLFILES"; \