Added multidb.virt_db.html, multidb.picture.html to list of HTML
[metaproxy-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.12 2006-04-27 08:51:19 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUBDIRS = common
5
6 SUFFIXES=.3mp .1
7
8 XMLFILES = main.xml.in book.xml manref.xml progref.xml copyright.xml \
9         metaproxy.xml
10
11 MAINXML = main.xml
12
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 \
19         metaproxy.1
20
21 HTMLFILES = architecture.html \
22         classes.html \
23         configuration.html \
24         example.configuration.html \
25         extensions.html \
26         filterref.html \
27         filters.html \
28         future.directions.html \
29         individual.classes.html \
30         installation.html \
31         installation.debian.html \
32         installation.windows.html \
33         introduction.html \
34         licence.html \
35         metaproxy.html \
36         multidb.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 \
42         refguide.html
43
44 PNGFILES=multi.png
45 EPSFILES=multi.eps
46
47 doc_DATA = $(HTMLFILES) metaproxy.pdf $(PNGFILES)
48 man_MANS = $(MANFILES)
49
50 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(EPSFILES) $(man_MANS)
51
52 $(HTMLFILES): $(XMLFILES) multi.png
53         jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(MAINXML)
54
55 .xml.3mp:
56         docbook2man $<
57
58 .xml.1:
59         docbook2man $<
60
61 metaproxy.pdf: $(XMLFILES) multi.eps
62         for i in $(PNGFILES) $(EPSFILES); do \
63                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
64         done
65         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
66         rm -f metaproxy.tex
67         mv main.tex metaproxy.tex
68         pdfjadetex metaproxy.tex >/dev/null
69         pdfjadetex metaproxy.tex >/dev/null
70         pdfjadetex metaproxy.tex >/dev/null
71
72 index.tkl: $(XMLFILES) common/tkl.xsl
73         xsltproc common/tkl.xsl $(MAINXML)
74
75 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
76         rm -f manref.xml
77         for i in $(XMLMAN); do \
78                 xsltproc $(srcdir)/common/ref2dbinc.xsl $$i | sed 1d >> manref.xml; \
79         done
80
81 progref.xml: metaproxy.xml
82         rm -f $@
83         xsltproc $(srcdir)/common/ref2dbinc.xsl $? | sed 1d >> $@
84
85 multi.png: multi.svg
86         inkscape --export-png=$@ --export-width=800 --export-area-drawing $?
87
88 multi.eps: multi.svg
89         inkscape --export-eps=$@ --export-text-to-path $?
90
91 clean-data-hook:
92         rm -f [0-9]* *.bak
93
94 dist-hook:
95         for f in $(srcdir)/*.html; do \
96                 found=0; \
97                 b=`basename $$f`; \
98                 for h in $(HTMLFILES); do \
99                         if test "$$h" = "$$b"; then \
100                                 found=1; \
101                         fi \
102                 done; \
103                 if test "$$found" = "0"; then \
104                         echo "$$f not found in HTMLFILES"; \
105                         exit 1; \
106                 fi \
107         done