summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 10871021..628bb5e8 100644
--- a/Makefile
+++ b/Makefile
@@ -61,11 +61,13 @@ VPATH := $(top_srcdir)
-include $(top_srcdir)/dep.mk
lex.yy.c: parser.l
+ rm -f $@
$(LEX) $(LEX_DBG_FLAGS) $<
chmod a-w $@
y.tab.c y.tab.h: parser.y
- if $(YACC) -v -d $< ; then chmod a-w $@ ; true ; else rm $@ ; false ; fi
+ rm -f y.tab.c
+ if $(YACC) -v -d $< ; then chmod a-w y.tab.c ; true ; else rm y.tab.c ; false ; fi
# Suppress useless sccs id array and unused label warning in byacc otuput.
# Bison-generated parser also tests for this lint define.