home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cake / part06 / Lib / Lex < prev    next >
Encoding:
Text File  |  1987-10-15  |  397 b   |  19 lines

  1. $    Cakefile to handle lex files.
  2.  
  3. $    It renames the output file of lex so that it has the same
  4. $    basename as the source file. The value of the macro LFLAGS
  5. $    is passed on to lex.
  6.  
  7. $    This cakefile was written to work with the cakefile C and one
  8. $    of the cakefiles Main and System.
  9.  
  10. #ifndef    LFLAGS
  11. #define    LFLAGS
  12. #endif
  13.  
  14. %.c^:        %.l             if exist %.l
  15.         lex LFLAGS %.l
  16.         @mv lex.yy.c %.c
  17.  
  18. #define    USE_LEX
  19.