$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Daniel Goertzen (daniel.goertzen_at_[hidden])
Date: 2006-03-27 09:48:17
I've got a strange one-off generator that I don't know how to deal with in
bb. In gnu-make, it would be expressed like this:
INPUTS=x.names y.tab z.tab
OUTPUTS=a.c a.h b.c b.h
$(OUTPUTS): $(INPUTS)
make_tables $(INPUTS)
"make_tables" is the code generator, a perl script. The names of the output
files are hard coded into the script, and it can take a number of inputs of
various suffixes.
I tried to express it like this:
rule MT { Depends $1 : $2 ; }
actions MT
{
make_tables $(<)
}
MT $(OUTPUTS) : $(INPUTS) ;
exe mytest : a.c ;
But it complains about not being able to find "a.c". Perhaps I'm not
allowed to mix classic Jam with bb? Any suggestions on how to go about
this?
Thanks,
Dan.