Move from sgml to nxml indentation YPP-15
[yazpp-moved-to-github.git] / doc / Makefile.am
1 SUBDIRS = common
2
3 XMLFILES = book.xml local.ent
4
5 MANFILES = yazpp-config.1
6
7 REFFILES = yazpp-config-man.xml
8
9 HTMLFILES = index.html
10
11 doc_DATA = $(HTMLFILES)
12
13 man_MANS = $(MANFILES)
14
15 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) $(REFFILES) \
16         entities.ent
17
18 $(HTMLFILES): $(XMLFILES)
19         rm -f *.html
20         $(HTML_COMPILE) book.xml
21
22 yazpp-config.1: yazpp-config-man.xml
23         $(MAN_COMPILE) $(srcdir)/yazpp-config-man.xml
24
25 $(MANFILES): local.ent
26
27 yazpp.pdf: $(XMLFILES)
28         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common/; fi
29         $(PDF_COMPILE) book.xml
30         mv book.pdf yazpp.pdf
31
32 clean-data-hook:
33         rm -f [0-9]* *.bak
34
35 dist-hook:
36         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
37         for p in $$d/*.html; do \
38                 cp $$p $(distdir); \
39         done
40
41 doc-clean:
42         rm -f *.html *.[0-9] *.pdf
43
44 install-data-hook:
45         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
46         for p in $$d/*.html; do \
47                 $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
48         done
49
50 uninstall-hook:
51         rm -r $(DESTDIR)$(docdir)