|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-07-12 01:35:49
On Friday 07 July 2006 16:44, Ren Zhi Zhang wrote:
> variant package : release ;
>
> And I would like to copy all project related MEL scripts (*.mel) to a
> folder named "package" after the "package" variant has been built:
>
> install package : [ glob *.mel ] : <location>/package ;
>
> So far so good but the trouble is that I only want the MEL scripts to be
> copied when the "package" variant is built, so naturally I tried something
> like this:
>
> if $(package) # or something like if <variant>package = "package"
> {
> install package : [ glob *.mel ] : <location>/package ;
> }
Hi Ren,
at the moment you should be using target alternatives:
http://boost.org/boost-build2/doc/html/bbv2/advanced/targets.html#id2572544
Specifically the following should work:
# This alternative is selected for 'package' variant.
install package : [ glob *.mel ] : <location>/package <variant>package ;
# This alternative is selected in all other cases, and does nothing.
alias package ;
HTH,
Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk