Makefile.am 1.42 KB
Newer Older
Jeremy C. Reed's avatar
Jeremy C. Reed committed
1
# generated documentation
2 3
HTMLDOCS = bind10-guide.html bind10-messages.html
DOCS = bind10-guide.txt
Jeremy C. Reed's avatar
Jeremy C. Reed committed
4

5 6
dist_doc_DATA = $(DOCS)
dist_html_DATA = $(HTMLDOCS) bind10-guide.css
Jeremy C. Reed's avatar
Jeremy C. Reed committed
7

8
EXTRA_DIST = bind10-guide.xml
9
DISTCLEANFILES = $(HTMLDOCS) $(DOCS) bind10-messages.xml
Jeremy C. Reed's avatar
Jeremy C. Reed committed
10

11
# This is not a "man" manual, but reuse this for now for docbook.
12
if GENERATE_DOCS
13

14
bind10-guide.html: bind10-guide.xml
15
	@XSLTPROC@ --novalid --xinclude --nonet \
16 17
		--path $(top_builddir)/doc \
		-o $@ \
18 19
		--stringparam section.autolabel 1 \
		--stringparam section.label.includes.component.label 1 \
20 21 22 23
		--stringparam html.stylesheet $(srcdir)/bind10-guide.css \
		http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
		$(srcdir)/bind10-guide.xml

24
bind10-guide.txt: bind10-guide.html
25
	@ELINKS@ -dump -no-numbering -no-references bind10-guide.html > $@
26

27
bind10-messages.html: bind10-messages.xml
28
	@XSLTPROC@ --novalid --xinclude --nonet \
29 30 31 32
		--path $(top_builddir)/doc \
		-o $@ \
		--stringparam html.stylesheet $(srcdir)/bind10-guide.css \
		http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \
Jeremy C. Reed's avatar
Jeremy C. Reed committed
33
		bind10-messages.xml
34 35

bind10-messages.xml:
36 37
	$(PYTHON) $(top_srcdir)/tools/system_messages.py -o $@ $(top_srcdir)

38 39 40
else

$(HTMLDOCS) $(DOCS):
41 42
	@echo Doc generation disabled.  Creating dummy $@.  Configure with --enable-generate-docs to enable it.
	@echo Doc generation disabled.  Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
43

44
endif