fee41b7d0b409fb93d44ceece6db547501e344dd
[yazpp-moved-to-github.git] / doc / Makefile.am
1 SUBDIRS = common
2
3 XMLFILES = \
4  introduction.xml \
5  installation.xml \
6  zoom.xml \
7  api.xml \
8  license.xml \
9  yazpp.xml
10
11 TOP = $(srcdir)/yazpp.xml
12
13 MANFILES = yazpp-config.8
14
15 REFFILES = yazpp-config-man.xml
16
17 HTMLFILES = index.html
18
19 doc_DATA = $(HTMLFILES) 
20
21 man_MANS = $(MANFILES)
22
23 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \
24         entities.ent local.ent.in
25
26 $(HTMLFILES): $(XMLFILES)
27         rm -f *.html
28         $(HTML_COMPILE) $(TOP)
29
30 index.tkl: $(XMLFILES)
31         $(TKL_COMPILE) $(TOP)
32
33 yazpp-config.8: yazpp-config-man.xml
34         $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml
35
36 yazpp.pdf: $(XMLFILES)
37         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
38         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
39         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
40         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
41         pdfjadetex yazpp.tex >pdfjadetex.log 2>&1
42
43
44 clean-data-hook:
45         rm -f [0-9]* *.bak
46
47 dist-hook:
48         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
49         for p in $$d/*.html; do \
50                 cp $$p $(distdir); \
51         done
52
53 install-data-hook:
54         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
55         for p in $$d/*.html; do \
56                 $(docDATA_INSTALL) $$p $(DESTDIR)$(docdir); \
57         done
58
59 uninstall-hook:
60         rm -r $(DESTDIR)$(docdir)