mkimage-profiles/Makefile.asciidoc
2012-10-31 21:22:06 +02:00

32 lines
815 B
Makefile

PROJECT = mkimage-profiles
TOPLEVEL_DOC = mkimage-profiles.asciidoc
HTMLPAGE = $(TOPLEVEL_DOC:.asciidoc=.html)
RESOURCE_FILES = /etc/asciidoc/
A2X = a2x
.PHONY: all clean
all: $(HTMLPAGE)
%.html: %.asciidoc
$(A2X) -d book -f xhtml -a lang=ru \
--icons -r $(RESOURCE_FILES) -r ./ \
--xsltproc-opts='--stringparam toc.max.depth 3' \
$<
chunked: $(TOPLEVEL_DOC)
$(A2X) -d book -f chunked -a lang=ru \
--icons -r /etc/asciidoc/ -r ./ \
--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 \
--xsltproc-opts=' \
--stringparam toc.max.depth 3 \
--stringparam title.font.family "Arial" \
--stringparam body.font.family "Verdana" \
--stringparam monospace.font.family "Arial"' \
$<