Use the "-o" flag, rather than using the "-t" flag and redirecting the
authorGuy Harris <guy@alum.mit.edu>
Thu, 6 Apr 2000 06:19:42 +0000 (06:19 -0000)
committerGuy Harris <guy@alum.mit.edu>
Thu, 6 Apr 2000 06:19:42 +0000 (06:19 -0000)
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

wiretap/Makefile.nmake

index 9d6dc81a8c9c4fa17b1f3e87d513787498f64dc7..3a79aeb7e8aa5dad83f54c6e5ce018b7fd1aea96 100644 (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