Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-12-18 15:43:55


<ccharles_at_[hidden]> writes:

> Hi all,
>
> I'm trying to implement rules for bjam to install my current project
> but I can't get bjam to execute the 'actions' statement that I
> defined in my Jamfile. Following is an example code that I can't
> get it to run.
>
> ECHO_ ?= echo ;
>
>
> rule COUT
> {
> COUT_ $(<) ;
> }
>
> actions COUT_
> {
> $(ECHO_) $(<)
> }
>
> rule my_rules
> {
> DEPENDS $(<) : $(>) ;
> COUT $(>) ;
> }
>
> rule make_rule
> {
> exe $(<)$(SUFEXE) : $(>) ;
> LINKLIBS on $(<)$(SUFEXE) = -lm ;
> my_rules $(<) : hello world ;
> }
>
> make_rule testit : test.cc ;
>
>
>
> I used print statements and find that bjam runs up to the rule COUT,
> but it doesn't seem to recognize the action COUT_.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

What does this mean?

> Am I missing something here?

Did you try running with -d+12 to see the dependency evaluation?

-- 
David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
 

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