Subject: Re: [Boost-build] Newbie Q
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-02-02 14:30:55
On Monday 02 February 2009 22:11:41 Reynolds, John wrote:
> Is there any way to run a notfile or make target before a lib target is run as they seem to run after lib target.
> I am trying to extract sources from a compressed file before doing a glob-tree. If someone has a recipe that do this, I would be much obliged.
> Trying to do something like,
> rule extract_src ( )
> echo "Extracting sources" ;
> actions extract_src
> "./gzip" -xvf $(>)
> extract_src ;
> lib xyz : [ glob-tree *.c ] ;
You can use <dependency> feature to control the order the targets are built. But
it won't help here -- [ glob-tree *.c ] is executed when Jamfile is read, and
before *any* actions are executed. Maybe, external script to unpack sources is best.
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