Subject: Re: [Boost-build] make rule with extra variables + figuring out the full target path
From: Fadi Beyrouti (fbeyrout_at_[hidden])
Date: 2010-02-10 14:32:59
> > 1. Is there a way to get that path?
> > 2. Is there a better/cleaner way of doing what I want to do?
> Does it work if you add
> constant EXTRA_VAR : SOME_VALUE ;
> somewhere in your Jamfile? In fact, even
> EXTRA_VAR = SOME_VALUE ;
> will work, but 'constant' are inherited by child Jamfiles, so is better.
Thanks Volodya for the clarifications.
This actually works only partially. The reason is that I am actually inside a
for local TARGET in $(TARGETS)
make $(TARGET).myext :
constant EXTRA_VAR : $(TARGET) ;
unfortunately $(EXTRA_VAR) always takes the value of the last element of the
list of $(TARGETS). This is kind of why I use the "on" construct. Is there any
way of getting that target passed to the action?
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