Documentation rebuilt if local.ent changes
[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  local.ent
11
12 TOP = $(srcdir)/yazpp.xml
13
14 MANFILES = yazpp-config.1
15
16 REFFILES = yazpp-config-man.xml
17
18 HTMLFILES = index.html
19
20 doc_DATA = $(HTMLFILES) 
21
22 man_MANS = $(MANFILES)
23
24 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \
25         entities.ent
26
27 $(HTMLFILES): $(XMLFILES)
28         rm -f *.html
29         $(HTML_COMPILE) $(TOP)
30
31 yazpp-config.1: yazpp-config-man.xml
32         $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml
33
34 $(MANFILES): local.ent
35
36 yazpp.pdf: $(XMLFILES)
37         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
38         $(PDF_COMPILE) $(TOP)
39
40 clean-data-hook:
41         rm -f [0-9]* *.bak
42
43 dist-hook:
44         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
45         for p in $$d/*.html; do \
46                 cp $$p $(distdir); \
47         done
48
49 doc-clean:
50         rm -f *.html *.[0-9] *.pdf
51
52 install-data-hook:
53         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
54         for p in $$d/*.html; do \
55                 $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
56         done
57
58 uninstall-hook:
59         rm -r $(DESTDIR)$(docdir)