4e0cd6bdf6
Docs should live happily together, after all, and toplevel should be more or less uncluttered :) Adjusted/rewrote as appropriate as well.
32 lines
816 B
Makefile
32 lines
816 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 $(RESOURCE_FILES) -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"' \
|
|
$<
|