summaryrefslogtreecommitdiff
path: root/Makefile.comm
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.comm')
-rw-r--r--Makefile.comm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.comm b/Makefile.comm
index 39432cc4..339ad67d 100644
--- a/Makefile.comm
+++ b/Makefile.comm
@@ -116,7 +116,9 @@ extraclean: distclean
fi
-test -f y.tab.h && mv y.tab.h y_tab.h
-test -f y.tab.c && mv y.tab.c y_tab.c
- mv y_tab.c $(YTABC)
+ sed "s/^#line \(.*\) \"y.tab.c\"/#line \1 \"$(YTABC)\"/" \
+ < y_tab.c > $(YTABC)
+ -rm -f y_tab.c
test -z "$(YTABH)" || mv y_tab.h $(YTABH)
# The next rule is needed for make of Solaris 2.5.1 to override its