|
Boost-Build : |
From: Larry Evans (jcampbell3_at_[hidden])
Date: 2002-04-01 21:57:48
Rene Rivera wrote:
> On 2002-04-01 at 07:56 PM, jcampbell3_at_[hidden] (Larry Evans) wrote:
>
> >The following top level Jamfile:
> ><---------- top Jamfile -------------
> >project-root
> > ;
> >
> >rule test-rule
> > {
> > ECHO "rule output is" $(TOP) ;
> > }
> >
> >test-rule
> > ;
>
[snip]
>
> To resolve forward references in Jamfiles, they get included twice. The first
> time they don't generate build instructions (actions). The second time they
> do. To tell if it's the first pass you'r on do "if $(gIN_LIB_INCLUDE)". The
> name of the variable is historical :-\
>
Thanks much. I changed the Jamfile to:
<-------------- new Jamefile ----------------
project-root
;
actions test-rule
{
echo "action output is" $(TOP)
}
rule test-rule
{
if ( ! $(gIN_LIB_INCLUDE) )
{
ECHO "rule output is" $(TOP) ;
}
}
ALWAYS always-target
;
test-rule always-target
;
>---------------------------------------
The output had just "rule output is ." and not the
"action output is .". Do you have some idea why?
TIA again.
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