Beginnings of installation chapter.
[metaproxy-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.10 2006-04-24 06:40:50 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         other.source.files.html \
38         overview.filter.types.html \
39         overview.xml.structure.html \
40         refguide.html
41
42 PNGFILES=
43 EPSFILES=
44
45 doc_DATA = $(HTMLFILES) metaproxy.pdf $(PNGFILES)
46 man_MANS = $(MANFILES)
47
48 EXTRA_DIST = $(XMLFILES) $(XMLMAN) $(doc_DATA) $(EPSFILES) $(man_MANS)
49
50 $(HTMLFILES): $(XMLFILES)
51         jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(MAINXML)
52
53 .xml.3mp:
54         docbook2man $<
55
56 .xml.1:
57         docbook2man $<
58
59 metaproxy.pdf: $(XMLFILES)
60         for i in $(PNGFILES) $(EPSFILES); do \
61                 if test ! -f $$i; then ln -s $(srcdir)/$$i .; fi; \
62         done
63         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(MAINXML)
64         rm -f metaproxy.tex
65         mv main.tex metaproxy.tex
66         pdfjadetex metaproxy.tex >/dev/null
67         pdfjadetex metaproxy.tex >/dev/null
68         pdfjadetex metaproxy.tex >/dev/null
69
70 index.tkl: $(XMLFILES) common/tkl.xsl
71         xsltproc common/tkl.xsl $(MAINXML)
72
73 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
74         rm -f manref.xml
75         for i in $(XMLMAN); do \
76                 xsltproc $(srcdir)/common/ref2dbinc.xsl $$i | sed 1d >> manref.xml; \
77         done
78
79 progref.xml: metaproxy.xml
80         rm -f $@
81         xsltproc $(srcdir)/common/ref2dbinc.xsl $? | sed 1d >> $@
82
83 clean-data-hook:
84         rm -f [0-9]* *.bak
85
86 dist-hook:
87         for f in $(srcdir)/*.html; do \
88                 found=0; \
89                 b=`basename $$f`; \
90                 for h in $(HTMLFILES); do \
91                         if test "$$h" = "$$b"; then \
92                                 found=1; \
93                         fi \
94                 done; \
95                 if test "$$found" = "0"; then \
96                         echo "$$f not found in HTMLFILES"; \
97                         exit 1; \
98                 fi \
99         done