Use the "-o" flag, rather than using the "-t" flag and redirecting the

standard output, in the rules to get Flex to produce scanner code; that
way, if Flex fails to run for some reason, we don't leave around a
zero-length or otherwise incorrect "XXX-scanner.c" file that might
keep a subsequent make from thinking it has to generate that file.

svn path=/trunk/; revision=1808
This commit is contained in:
Guy Harris 2000-04-06 06:19:42 +00:00
parent 88a4741106
commit fc88999155
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ ascend-grammar.c ascend-grammar.h : ascend-grammar.y
ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
ascend-scanner.c : ascend-scanner.l
$(LEX) -Pascend -t ascend-scanner.l > ascend-scanner.c
$(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
config.h : config.h.win32