mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Don't hardwire the target directory name of xstl result processing. And allow overriding the default with the 'name' property.
[SVN r31711]
This commit is contained in:
@@ -314,7 +314,9 @@ class boostbook-generator : generator
|
||||
# Generate HTML/PDF/PS from DOCBOOK.
|
||||
local target = [ generators.construct $(project) $(manifest)
|
||||
: $(type) : $(property-set) : $(base-target) ] ;
|
||||
$(target[2]).set-path $(format) ;
|
||||
local name = [ $(property-set).get <name> ] ;
|
||||
name ?= $(format) ;
|
||||
$(target[2]).set-path $(name) ;
|
||||
$(target[2]).depends $(catalog) ;
|
||||
|
||||
targets += $(target[2]) ;
|
||||
|
||||
@@ -73,7 +73,7 @@ rule compute-xslt-flags ( target : properties * )
|
||||
|
||||
|
||||
local rule .xsltproc ( target : source stylesheet : properties * : dirname ? : action )
|
||||
{
|
||||
{
|
||||
STYLESHEET on $(target) = $(stylesheet) ;
|
||||
FLAGS on $(target) = [ compute-xslt-flags $(target) : $(properties) ] ;
|
||||
NAME on $(target) = $(.xsltproc) ;
|
||||
@@ -83,7 +83,6 @@ local rule .xsltproc ( target : source stylesheet : properties * : dirname ? : a
|
||||
CATALOG = [ common.variable-setting-command XML_CATALOG_FILES : $(catalog) ] ;
|
||||
}
|
||||
|
||||
DIRECTORY on $(target) = $(dirname) ;
|
||||
$(action) $(target) : $(source) ;
|
||||
}
|
||||
|
||||
@@ -104,5 +103,5 @@ actions xslt-xsltproc
|
||||
|
||||
actions xslt-xsltproc-dir
|
||||
{
|
||||
$(CATALOG) "$(NAME:E=xsltproc)" $(FLAGS) --xinclude -o "$(DIRECTORY)/" "$(STYLESHEET)" "$(>)"
|
||||
$(CATALOG) "$(NAME:E=xsltproc)" $(FLAGS) --xinclude -o "$(<:D)/" "$(STYLESHEET)" "$(>)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user