Subject: Re: [Boost-build] Problem with notfile target
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-11-29 13:57:39
On Saturday 29 November 2008 21:05:45 Steven Watanabe wrote:
> Ian Emmons wrote:
> >> Probably, instead of adding the target to sources, you can use
> >> <dependency>JniHeaders
> >> in requirements?
> >> - Volodya
> > Thanks for the quick reply.
> > Your suggestion does indeed cause the JniHeaders target to run before
> > the library is built, but it has two undesirable side effects:
> > * It causes the library is completely rebuilt every time, as if I did
> > a bjam --clean beforehand.
> notfile targets are always built. You can try something like:
> make JniHeaders.txt : : @BuildJniHeaders ;
> alias JniHeaders : JniHeaders.txt ;
> actions BuildJniHeaders
> ant jniHeaders
> echo Updated >$(<)
> so that bjam has something to check the timestamp of.
But on the other hand, while always running 'ant' might be reasonable, I
am not sure that causing dependents of notfile to be always rebuilt makes
I guess I can make it not happen -- does that seem right?
-- 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