NULL =
SUFFIXES = .html
ASCIIDOC_FLAGS = -a icons -a toc

EXTRA_DIST =					\
	images/icons/important.png		\
	images/icons/note.png			\
	manual.html				\
	manual.chunked				\
	manual.txt				\
	$(NULL)

.txt.html:
	$(AM_V_GEN) $(ASCIIDOC) $(ASCIIDOC_FLAGS) -o $@ $<

manual.chunked: manual.txt
	$(AM_V_GEN) $(A2X) -f chunked -D $(builddir) $(ASCIIDOC_FLAGS) $<

docfiles =
if BUILD_HTML_MANUAL
docfiles += manual.html
endif
if BUILD_CHUNKED_MANUAL
docfiles += manual.chunked
endif

all-local: $(docfiles)

clean-local:
	rm -f manual.html
	rm -rf manual.chunked
