summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ef4591c4..30f09166 100644
--- a/Makefile
+++ b/Makefile
@@ -203,7 +203,14 @@ y.tab.h: y.tab.c
y.tab.c: $(top_srcdir)parser.y
$(call ABBREV,YACC)
$(V)rm -f y.tab.c
- $(V)if $(YACC) -v -d $< ; then chmod a-w y.tab.c ; true ; else rm y.tab.c ; false ; fi
+ $(V)if $(YACC) -v -d $< ; then \
+ chmod a-w y.tab.c ; \
+ sed -e '/yyparse/d' < y.tab.h > y.tab.h.tmp && \
+ mv y.tab.h.tmp y.tab.h ; \
+ 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.