summaryrefslogtreecommitdiff
path: root/lib/Makefile.in
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-04-19 00:39:16 +0000
committerJim Meyering <jim@meyering.net>1993-04-19 00:39:16 +0000
commitadcff142d8c2b5f7f8c08ff8cbcaf97d346af9b2 (patch)
treee47cc900f4fea1f1f6e9a90d1297a353d6859def /lib/Makefile.in
parent29c0442cadced638d3f26b50db5a6328ad7b82d9 (diff)
downloadcoreutils-adcff142d8c2b5f7f8c08ff8cbcaf97d346af9b2.tar.xz
merge with 3.4.8
Diffstat (limited to 'lib/Makefile.in')
-rw-r--r--lib/Makefile.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in
index affeea23d..83ea2751d 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -74,18 +74,20 @@ libfu.a: $(OBJECTS)
$(AR) cr $@ $(OBJECTS)
-$(RANLIB) $@
-# Since this directory contains two parsers, using bison without -y
-# is the only way to reliably do a parallel make.
+# Since this directory contains two parsers, we have to be careful to avoid
+# running two $(YACC)s during parallel makes. See below.
getdate.c: getdate.y
@echo expect 9 shift/reduce conflicts
- -bison -o getdate.c $(srcdir)/getdate.y || $(YACC) $(srcdir)/getdate.y
- test ! -f y.tab.c || mv y.tab.c getdate.c
+ $(YACC) $(srcdir)/getdate.y
+ mv y.tab.c getdate.c
# Make the rename atomic, in case sed is interrupted and later rerun.
-posixtm.c: posixtm.y
- -bison -o posixtm.tab.c $(srcdir)/posixtm.y \
- || $(YACC) $(srcdir)/posixtm.y
- test ! -f y.tab.c || mv y.tab.c posixtm.tab.c
+# The artificial dependency on getdate.c keeps the two parsers from being
+# built in parallel. Enforcing this little bit of sequentiality lets
+# everyone (even those without bison) still run mostly parallel builds.
+posixtm.c: posixtm.y getdate.c
+ $(YACC) $(srcdir)/posixtm.y
+ mv y.tab.c posixtm.tab.c
sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
mv tposixtm.c posixtm.c
rm -f posixtm.tab.c