2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Allow for new stage dirs without sub-path.

It's useful to set up stage install dirs as aliases to others to allow
for external overrides. This makes it possible to also have such
aliases without needing to make them a sub-path of an
existing dir path.
This commit is contained in:
Rene Rivera
2020-05-31 08:04:10 -05:00
parent ba26d04fd0
commit 148a69cc9b

View File

@@ -52,7 +52,7 @@ feature.feature install-package : : free ;
#| tag::doc[]
[[bbv2.reference.modules.stage.add-install-dir]]
. `rule add-install-dir ( name : suffix : parent ? : options * )`
. `rule add-install-dir ( name : suffix ? : parent ? : options * )`
+
Defines a named installation directory.
+
@@ -82,8 +82,9 @@ installs `a` into `(baz)/bar/xyz`.
|# # end::doc[]
.dirs = ;
rule add-install-dir ( name : suffix : parent ? : options * )
rule add-install-dir ( name : suffix ? : parent ? : options * )
{
suffix ?= "" ;
if $(name) in $(.dirs)
{
import errors ;