Use copy rather than symlink for id.png
[yazpp-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.18 2006-04-20 11:36:40 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUBDIRS = common
5
6 XMLFILES = \
7  introduction.xml \
8  installation.xml \
9  zoom.xml \
10  api.xml \
11  license.xml \
12  yazpp.xml.in
13  
14 TOP=yazpp.xml
15 MANFILES=
16 HTMLFILES = \
17  api.html \
18  implementations.html \
19  installation.html \
20  introduction.html \
21  license.html \
22  windows.html \
23  yazpp.html \
24  zoom-connection.html \
25  zoom-exception.html \
26  zoom-query.html \
27  zoom-record.html \
28  zoom-resultset.html \
29  zoom.html
30
31 doc_DATA = $(HTMLFILES) yazpp.pdf 
32
33 man_MANS = $(MANFILES)
34
35 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS)
36
37 $(HTMLFILES): $(XMLFILES)
38         jade -E14 -D $(srcdir) -d common/html.dsl -t sgml $(srcdir)/common/xml.dcl $(TOP)
39
40 yazpp.pdf: $(XMLFILES)
41         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
42         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
43         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
44         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
45         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
46
47 index.tkl: $(XMLFILES) common/tkl.xsl
48         xsltproc common/tkl.xsl $(TOP)
49
50 clean-data-hook:
51         rm -f [0-9]* *.bak
52
53 dist-hook:
54         for f in $(srcdir)/*.html; do \
55                 found=0; \
56                 b=`basename $$f`; \
57                 for h in $(HTMLFILES); do \
58                         if test "$$h" = "$$b"; then \
59                                 found=1; \
60                         fi \
61                 done; \
62                 if test "$$found" = "0"; then \
63                         echo "$$h not found in HTMLFILES"; \
64                         exit 1; \
65                 fi \
66         done
67