Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-06 10:27:22


On Monday 06 February 2006 17:28, Renaud Lepere wrote:

> It is nearly ok ... but i still have a smammproblem, i have defined
> rule myinstall ( install-name : project-name )
> {
> install $(install-name)-bin : $(project-name) ...
> explicit $(install-name)-bin $(install-name)-lib ;
> alias $(install-name) : $(install-name)-bin $(install-name)-lib ;
> }
> in my jamfile and call myinstall rule in the same jamfile it is ok
>
> myinstall install-abo : abo ;
> explicit install-abo ;
>
> but i defined myinstall rule in jamroot (to factorize it among other
> projects), it does not work anymore and the installation is always done. Is
> there an important thing i missed ?

I'm afraid it's a bug. To work around it for now, go to build/project.jam,
locate rule 'explicit' near the end of the file and replace

   local t = [ project.target $(__name__) ] ;

with

   local t = [ project.current ] ;

This fix, and a test, are in CVS, so you can get it from there as well, when
the change appears in anon CVS.

- Volodya


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