doc: allow specifying parameters for xsltproc.
This allows users to modify the DocBook stylesheet settings, such as the paper size. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
parent
bb3f89f9b0
commit
1384d79098
1 changed files with 3 additions and 2 deletions
|
|
@ -3,8 +3,9 @@ OBJ := $(SRC:.adoc=.pdf) $(SRC:.adoc=.html) $(SRC:.adoc=.ps)
|
|||
EXTRA_OBJ := $(SRC:.adoc=.xhtml)
|
||||
EXTRA_OBJ += $(SRC:.adoc=.xml) $(SRC:.adoc=.fo)
|
||||
ASCIIDOC := asciidoctor
|
||||
XSLTPROC := xsltproc
|
||||
FOP := fop
|
||||
XSLTPROC := xsltproc
|
||||
XSLT_PARAMS ?=
|
||||
DOCBOOK_XSL := /usr/share/xml/docbook/stylesheet/docbook-xsl-ns
|
||||
DOCBOOK_FO := $(DOCBOOK_XSL)/fo/docbook.xsl
|
||||
|
||||
|
|
@ -24,7 +25,7 @@ clean:
|
|||
$(ASCIIDOC) -b docbook5 -o $@ $<
|
||||
|
||||
%.fo: %.xml
|
||||
$(XSLTPROC) -o $@ $(DOCBOOK_FO) $<
|
||||
$(XSLTPROC) $(XSLT_PARAMS) -o $@ $(DOCBOOK_FO) $<
|
||||
|
||||
%.pdf: %.fo
|
||||
$(FOP) -fo $< -pdf $@
|
||||
|
|
|
|||
Loading…
Reference in a new issue