4384417cba0c395812ba3757bcc6de4f6e1f238a
[yazproxy-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.9 2006-04-20 12:05:54 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUBDIRS = common
5
6 XMLFILES = \
7  introduction.xml \
8  installation.xml \
9  reference.xml \
10  using.xml \
11  yaz-proxy-ref.xml \
12  yaz-proxy-man.xml \
13  license.xml \
14  yazproxy.xml.in
15  
16 TOP=yazproxy.xml
17 MANFILES=yazproxy.8
18 HTMLFILES =  \
19  installation.html \
20  introduction.html \
21  license.html \
22  other-optimizations.html \
23  otherinfo-encoding.html \
24  proxy-config-file.html \
25  proxy-keepalive.html \
26  proxy-reference.html \
27  proxy-target.html \
28  proxy-usage.html \
29  query-cache.html \
30  query-validation.html \
31  record-cache.html \
32  record-validation.html \
33  support.html \
34  using.html \
35  windows.html \
36  yazproxy-man.html \
37  yazproxy-schema.html \
38  yazproxy.html
39
40 doc_DATA = $(HTMLFILES) yazproxy.pdf
41
42 man_MANS = $(MANFILES)
43
44 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS)
45
46 $(HTMLFILES): $(XMLFILES)
47         jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(TOP)
48
49 yazproxy.8: yaz-proxy-man.xml yaz-proxy-ref.xml
50         docbook2man $(srcdir)/yaz-proxy-man.xml
51
52 yazproxy.pdf: $(XMLFILES)
53         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common; fi
54         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
55         pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1
56         pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1
57         pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1
58
59 index.tkl: $(XMLFILES) common/tkl.xsl
60         xsltproc common/tkl.xsl $(TOP)
61
62 clean-data-hook:
63         rm -f [0-9]* *.bak
64
65 dist-hook:
66         for f in $(srcdir)/*.html; do \
67                 found=0; \
68                 b=`basename $$f`; \
69                 for h in $(HTMLFILES); do \
70                         if test "$$h" = "$$b"; then \
71                                 found=1; \
72                         fi \
73                 done; \
74                 if test "$$found" = "0"; then \
75                         echo "$$h not found in HTMLFILES"; \
76                         exit 1; \
77                 fi \
78         done
79