char_tools.amk 504 B

123456789101112131415161718192021222324
  1. # tabgen: tool definition for character table generator
  2. # variables: TABGEN, CHTAB
  3. %include ack-defs.amk;
  4. %if (%not defined(TABGEN), {
  5. TABGEN = $EMHOME/bin/tabgen;
  6. });
  7. %if (%not defined(CHTAB), {
  8. CHTAB = chtab.c;
  9. });
  10. %instance deftypesuffix(char_tab, '%.ct');
  11. %tool gen_tab (
  12. chtab: %in [type = char_tab];
  13. cfile: %out [type = C-src] => $CHTAB;
  14. mktab: %in [type = command] => $TABGEN;
  15. )
  16. {
  17. exec($mktab, args => '-f' $chtab, stdout => $cfile);
  18. echo({$cfile, 'created'});
  19. };