Add pdf_ target

This commit is contained in:
Peter Dimov
2017-06-06 18:13:01 +03:00
parent 5f15c119fc
commit 0cc55b624e
2 changed files with 19 additions and 6 deletions

View File

@@ -14,10 +14,16 @@ html assert.html : index.adoc ;
# docbook assert.docbook : index.adoc ; # docbook assert.docbook : index.adoc ;
# boostbook assert.html : assert.docbook : <format>onehtml ; # boostbook assert.html : assert.docbook : <format>onehtml ;
install assert_html : assert.html : <location>html ; install html_ : assert.html : <location>html ;
pdf assert.pdf : index.adoc ;
explicit assert.pdf ;
install pdf_ : assert.pdf : <location>pdf ;
explicit pdf_ ;
############################################################################### ###############################################################################
alias boostdoc ; alias boostdoc ;
explicit boostdoc ; explicit boostdoc ;
alias boostrelease : assert_html ; alias boostrelease : html_ ;
explicit boostrelease ; explicit boostrelease ;

View File

@@ -10,6 +10,7 @@ import generators ;
import boostbook ; import boostbook ;
# File type # File type
type.register ASCIIDOC : asciidoc adoc ; type.register ASCIIDOC : asciidoc adoc ;
# Define dependency scanner # Define dependency scanner
@@ -27,17 +28,23 @@ type.set-scanner ASCIIDOC : asciidoc-scanner ;
# Define generators # Define generators
generators.register-standard asciidoctor.asciidoc2html : ASCIIDOC : HTML ; generators.register-standard asciidoctor.asciidoc-to-html : ASCIIDOC : HTML ;
# generators.register-standard asciidoctor.asciidoc2docbook : ASCIIDOC : DOCBOOK ; generators.register-standard asciidoctor.asciidoc-to-pdf : ASCIIDOC : PDF ;
# generators.register-standard asciidoctor.asciidoc-to-docbook : ASCIIDOC : DOCBOOK ;
# Define actions # Define actions
actions asciidoc2html actions asciidoc-to-html
{ {
asciidoctor -b html -o $(1) $(2) asciidoctor -b html -o $(1) $(2)
} }
actions asciidoc2docbook actions asciidoc-to-pdf
{
asciidoctor -r asciidoctor-pdf -b pdf -o $(1) $(2)
}
actions asciidoc-to-docbook
{ {
asciidoctor -b docbook -o $(1) $(2) asciidoctor -b docbook -o $(1) $(2)
} }