Boost logo

Boost-Build :

From: Vaclav Slavik (gclbb-jamboost_at_[hidden])
Date: 2002-11-02 16:33:34


Hi,

I'm experiencing a strange problem with bjam 3.1.2 (from Boost 1.29.0,
on Linux): an action associated with my own rule is executed twice
instead of once. Here's a sample file that shows it (it is a
simplified one that does not use Boost.Build rules and can be used
with ordinary Jam/MR):
-------Jamfile-------
rule IDLHeader
{
Depends first : $(<) ; # so that we always have them
Depends $(<) : $(>) ;
Clean clean : $(<) ;
MakeLocate $(<) : $(LOCATE_SOURCE) ;
SEARCH on $(>) = $(SEARCH_SOURCE) ;
}
actions IDLHeader
{
upf-idl2any -Lcxx -Iidl -o$(<:) $(>)
}
IDLHeader foo.h : foo.idl ;
--------------
This is bjam's output:
[vasek_at_wintermute code]$ bjam
...found 10 targets...
...updating 1 target...
IDLHeader foo.h
IDLHeader foo.h
...updated 1 target...
[vasek_at_wintermute code]$

If I run bjam as "jam" or use FTJam, the target is only updated once.
I'm probably missing something about Boost.Build, but I don't know
what :( Any idea what am I doing wrong?

Thanks,
Vaclav

 


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