Subject: Re: [Boost-build] Newbie Q
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-08-29 07:29:17
On Tuesday 04 August 2009 Brent72 wrote:
> Alex Richardson-2 wrote:
> > Next, at the top of my Jamroot file I have the lines:
> > path-constant SRC_DIR : . ;
> > SHELL "( cd $(SRC_DIR) && ./extract_boost.sh )" ;
> > Unlike a 'target' rule, bjam runs the 'SHELL' rule/command as soon as
> > it is encountered. So as bjam starts to read through my Jamroot file
> > to gether targets, the first thing it does is to run my shell script.
> I'm also a newbie to bjam and have a similar requirement to John. I tried
> the above suggestion to run a script that creates/updates a source file. I
> found that on the first build the script gets updated, but the project isn't
> rebuilt. On the 2nd build the script gets updated again and the project is
> rebuilt. It seems to be building the project every 2nd build.
Just a quick update -- I did tries this testcase some time ago, and saw this
"rebuild every other time" issue, but did not debug this further. I shall
look into this soon.
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