[C++-sig] defining bjam rules...

Charles Leung cleung at eos.ubc.ca
Mon Nov 25 22:18:11 CET 2002


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 $(<) : $(>) ;
	LINKLIBS on $(<)$(SUFEXE) = -lm ;
	my_rules $(<) : hello world ;
}

make_rule testit : test.cc ;



I tried running something simular using ftjam and it works fine.  Am I
missing something here?

Thanks,
Charles






More information about the Cplusplus-sig mailing list