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