From 39a2858f8446a80b4e7eb4ed4b212f4931f38494 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Fri, 17 Dec 2010 17:32:51 -0500 Subject: [PATCH] Fix YACC parallel build antelope now support an argument to modify the output file name. Use this it is possible to safely build several parsers in the same directory. --- configure/RULES_BUILD | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/configure/RULES_BUILD b/configure/RULES_BUILD index 7858f5851..71c96d53d 100644 --- a/configure/RULES_BUILD +++ b/configure/RULES_BUILD @@ -226,16 +226,16 @@ $(OBJLIBNAME):%$(OBJ): # ifeq ($(findstring -d, $(YACCOPT)),-d) %.h %.c: %.y - $(RM) $*.c y.tab.c - $(RM) $*.h y.tab.h - $(YACC) $(YACCOPT) $< - $(MV) y.tab.c $*.c - $(MV) y.tab.h $*.h + $(RM) $*.c $*.tab.c + $(RM) $*.h $*.tab.h + $(YACC) -b$* $(YACCOPT) $< + $(MV) $*.tab.c $*.c + $(MV) $*.tab.h $*.h else %.c: %.y - $(RM) $*.c y.tab.c - $(YACC) $(YACCOPT) $< - $(MV) y.tab.c $*.c + $(RM) $*.c $*.tab.c + $(YACC) -b$* $(YACCOPT) $< + $(MV) $*.tab.c $*.c endif %.c: %.l