op_tools.amk 326 B

1234567891011121314
  1. MAKE_OPS = make.ops;
  2. %instance deftypesuffix(op_tab, '%.ot');
  3. %tool gen_ops (
  4. ops: %in [type = op_tab];
  5. cfile: %out [type = C-src] => ops.c;
  6. hfile: %out [type = C-incl] => ops.h;
  7. mkops: %in [type = command] => $MAKE_OPS;
  8. )
  9. {
  10. exec($mkops, args => $ops);
  11. echo({$cfile, 'and', $hfile, 'created'});
  12. };