Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-03 07:33:53


On Friday 03 February 2006 14:28, Renaud Lepere wrote:
> 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".

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.

- 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