mkimage-profiles/doc/Makefile

32 lines
816 B
Makefile
Raw Normal View History

2012-10-31 01:21:23 +04:00
PROJECT = mkimage-profiles
TOPLEVEL_DOC = mkimage-profiles.asciidoc
HTMLPAGE = $(TOPLEVEL_DOC:.asciidoc=.html)
RESOURCE_FILES = /etc/asciidoc
2012-10-31 01:21:23 +04:00
A2X = a2x
.PHONY: all clean
all: $(HTMLPAGE)
%.html: %.asciidoc
$(A2X) -d book -f xhtml -a lang=ru \
--icons -r $(RESOURCE_FILES) -r . \
2012-10-31 01:21:23 +04:00
--xsltproc-opts='--stringparam toc.max.depth 3' \
$<
chunked: $(TOPLEVEL_DOC)
$(A2X) -d book -f chunked -a lang=ru \
--icons -r $(RESOURCE_FILES) -r . \
2012-10-31 01:21:23 +04:00
--xsltproc-opts='--stringparam toc.max.depth 3' \
$<
pdf: $(TOPLEVEL_DOC)
$(A2X) --verbose --fop --fop-opts='-c .fop.xconf' -d book -f pdf -a lang=ru \
2012-10-31 01:21:23 +04:00
--xsltproc-opts=' \
--stringparam toc.max.depth 3 \
--stringparam title.font.family "Arial" \
--stringparam body.font.family "Verdana" \
--stringparam monospace.font.family "Arial"' \
$<