|
Boost-Build : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-12-19 01:08:35
Patrick Tan wrote:
> I want to perform different pre build actions depending on whether it is
> "bjam clean", "bjam -a" or "bjam" inside my Jamfile.
>
> For example I would like to do something like this in my Jamfile:
>
> if (bjam clean)
if clean in $(ARGV)
> {
> SHELL "rm myVersioningFile.h" ;
> }
> else if (bjam -a)
if -a in $(ARGV)
> {
> SHELL "rm myVersioningFile.h" ;
> SHELL "prebuild.sh > myVersioningFile.h" ;
> }
>
> Would anyone know how I can achieve the above pseudo code in a Jamfile.
If you are "inside" the BBv2 umbrella then you'll need to get the ARGV
from the system module.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
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