414718b
--- flex-2.5.4/Makefile.in	2006-03-09 19:28:41.000000000 +0100
414718b
+++ flex-2.5.4/Makefile.in_new	2006-03-09 19:29:48.000000000 +0100
414718b
@@ -114,6 +114,7 @@ scan.c: scan.l
414718b
 	$(FLEX_EXEC) $(FLEX_FLAGS) $(COMPRESSION) $(srcdir)/scan.l >scan.c
414718b
 	@sed s,\"$(srcdir)/scan.l\",\"scan.l\", <scan.c >scan.tmp
414718b
 	@mv scan.tmp scan.c
414718b
+	-rm $(FLEX)
414718b
 
414718b
 scan.o: scan.c parse.h flexdef.h config.h
414718b
 yylex.o: yylex.c parse.h flexdef.h config.h
414718b
@@ -146,7 +147,7 @@ alloca.c: $(srcdir)/MISC/alloca.c
414718b
 	cp $(srcdir)/MISC/alloca.c .
414718b
 
414718b
 test: check
414718b
-check: $(FLEX)
414718b
+check: scan.c $(FLEX)
414718b
 	$(FLEX_EXEC) $(FLEX_FLAGS) $(COMPRESSION) $(srcdir)/scan.l \
414718b
 	| sed s,\"$(srcdir)/scan.l\",\"scan.l\", \
414718b
 	| diff scan.c -
414718b
@@ -160,7 +161,7 @@ bigcheck:
414718b
 	rm -f scan.c ; $(MAKE) COMPRESSION="-Cfea" check
414718b
 	rm -f scan.c ; $(MAKE) COMPRESSION="-CFer" check
414718b
 	rm -f scan.c ; $(MAKE) COMPRESSION="-l" PERF_REPORT="" check
414718b
-	rm -f scan.c ; $(MAKE)
414718b
+	rm -f scan.c ; $(MAKE) check
414718b
 	@echo "All checks successful"
414718b
 
414718b
 $(FLEXLIB): $(LIBOBJS)