15 lines
326 B
Plaintext
15 lines
326 B
Plaintext
MAKE_OPS = make.ops;
|
|
|
|
%instance deftypesuffix(op_tab, '%.ot');
|
|
|
|
%tool gen_ops (
|
|
ops: %in [type = op_tab];
|
|
cfile: %out [type = C-src] => ops.c;
|
|
hfile: %out [type = C-incl] => ops.h;
|
|
mkops: %in [type = command] => $MAKE_OPS;
|
|
)
|
|
{
|
|
exec($mkops, args => $ops);
|
|
echo({$cfile, 'and', $hfile, 'created'});
|
|
};
|