[C++-sig] defining bjam rules...
David Abrahams
dave at boost-consulting.com
Mon Nov 25 22:42:47 CET 2002
"Charles Leung" <cleung at eos.ubc.ca> 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 $(<) : $(>) ;
> 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?
Lots. Boost.Build is a higher-order build system than FTJam, and so
you need different techniques. Please try your Boost.Build questions
on the yahoo group at http://www.yahoogroups.com/groups/jamboost
Regards,
--
David Abrahams
dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
More information about the Cplusplus-sig
mailing list