- mv Makefile Makefile.tmp
- $(YACC) $(YFLAGS) regexp.y
- mv y.tab.c regexp.c
- sed '/^#Depend/q' <Makefile.tmp >Makefile
- $(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >>Makefile
- rm -f Makefile.tmp regexp.c
+ sed '/^#Depend/q' <Makefile >Makefile.tmp
+ $(CPP) $(DEFS) -M *.c >>Makefile.tmp
+ mv -f Makefile.tmp Makefile