bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] [PATCH] dependency for parallel make (bison)


From: Petr Ovtchenkov
Subject: [bug-gawk] [PATCH] dependency for parallel make (bison)
Date: Tue, 12 Sep 2017 10:41:28 +0300

Add dependency between command.c and awkgram.c to avoid
parallel bison running. Bison produce y.tab.c, so if
ones generated in parallel, collision may happens.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 8660c11..3fb88d3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -207,7 +207,7 @@ awkgram.c: awkgram.y
        if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
        else :; fi
 
-command.c: command.y
+command.c: command.y awkgram.c
        $(YACC) -p zz $<
        sed 's/parse error/syntax error/g' < y.tab.c | awk -f 
"$(srcdir)"/bisonfix.awk command > $*.c && rm y.tab.c
 
-- 
2.10.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]