|
Boost-Build : |
From: Renaud Lepere (renaud.lepere_at_[hidden])
Date: 2006-02-06 09:28:13
> > I'm trying to make a specific install rule, and i want to call
> > this install rule in all my project.
> >
> > rule my-install ( install-name : project-name )
> > {
> > install $(install-name)-bin : $(project-name)
> > install $(install-name)/lib : $(project-name)
> > }
>
> You can use this:
>
> install $(install-name)/bin : ........... ;
> explicit $(install-name)/bin ;
>
> alias $(install-name) : $(install-name)/bin ;
>
> Then, using explicit in $(install-name) will have the usual
> effect. The code
> you've shown above won't work since you don't define any target named
> $(install-name).
>
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 ?
Thanks
Renaud.
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