From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-05-10 23:30:56
Vladimir Prus <ghost_at_[hidden]> writes:
> Hi Andre,
> sorry it took me that long to reply...
> Andre Hentz wrote:
>> Here's what I'd like to achieve: When checking which target should be
>> rebuilt, BBv2 would use the first file it can find, say, along
>> $(SEARCHPATH). If the file needs to be rebuilt, it would be put into
>> Is there any kind of mechanism in place for doing something like that? Is
>> it something I should put some effort into?
> I don't think this is possible with current bjam core. For generated targets,
> you have LOCATE variable, and only first elements affects binding.
I think there are ways of doing this if you're willing to be
intrusive on the actions. For example, you could just set SEARCH on
the target and physically prepend the target path to the target name:
echo "hi" > $(<:D=LOCATION)
If you're not willing to do that, but you don't mind having it built
in the current directory, you can also add a rule in the system which
moves the target to where you want it.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
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