Anthony Heading wrote:
On Sat, Feb 22, 2003 at 07:49:54AM +1100, Russell Shaw wrote:
What file includes file.cproto.h? This information might
be needed to get the order of updating right.
file.c. Hence the original INCLUDES was pretty much
appropriate. And why thus I wasn't sure that the
ordering would be right doing something like you
suggest...
HdrRule in http://public.perforce.com/public/jam/src/Jambase
already does "INCLUDES file.c : file.cproto.h. How about
this:
rule CProto
{
DEPENDS $(<) : $(>) ;
}
actions CProto
{
cproto -o $(<) $(>)
}
CProto file.c : file.cproto.h ;
Main file : file.c ;