24 lines
		
	
	
	
		
			504 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			504 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| # tabgen: tool definition for character table generator
 | |
| # variables:	TABGEN, CHTAB
 | |
| 
 | |
| %include ack-defs.amk;
 | |
| 
 | |
| %if (%not defined(TABGEN), {
 | |
|     TABGEN = $EMHOME/bin/tabgen;
 | |
| });
 | |
| 
 | |
| %if (%not defined(CHTAB), {
 | |
|     CHTAB = chtab.c;
 | |
| });
 | |
| 
 | |
| %instance deftypesuffix(char_tab, '%.ct');
 | |
| 
 | |
| %tool gen_tab (
 | |
|     chtab:	%in [type = char_tab];
 | |
|     cfile:	%out [type = C-src]	=> $CHTAB;
 | |
|     mktab:	%in [type = command]	=> $TABGEN;
 | |
| )
 | |
| {
 | |
|     exec($mktab, args => '-f' $chtab, stdout => $cfile);
 | |
|     echo({$cfile, 'created'});
 | |
| };
 |