Boost logo

Boost-Build :

From: Renaud Lepere (renaud.lepere_at_[hidden])
Date: 2006-02-03 12:55:46


> > I am trying to create a new top rule that work with the
> > explicit keyword. I tried the following code, but when
> > I call bjam i get "hello all". How can i do this ?
> >
> > rule mytest ( name )
> > {
> > echo $(name) all ;
> > }
>
> This defined a rule (that is, function), that prints "$(name) all".
>
> > mytest hello ;
>
> This calls the above rule, which prints "hello all".
>
> What exactly are you trying to do? All main target rules work
> with "explicit"
> out of box, and it's impossible to write main target rule
> what would ignore
> "explicit".

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)
                                : <location>../build/bin
                                : <install-type>SHARED_LIB ;
    install $(install-name)/lib : $(project-name)
                                : <location>../build/lib
                                : <install-type>STATIC_LIB ;
}
..
and latter i want to write in my jamfiles

my-install install-abo : abo ;
explicit install-abo ;

>
> Have you read extender manual already? It's
> http://boost.org/boost-build2/doc/html/bbv2/extender.html and
> is the first
> think you should do before adding custom main target rules.

Thanks i will read this

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