summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-09-13 21:46:48 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-09-13 21:46:48 +0300
commit94ca7f779925580a8bbc5864316f1625a3317332 (patch)
tree53c5bdc92f7c7bc84c0b6fa44efcfd55a8c1818a /Makefile.in
parentd94b010f4ff2a117cc5cad8219279b6bf820e29f (diff)
downloadgawk-94ca7f779925580a8bbc5864316f1625a3317332.tar.gz
Revise build to use bison for both grammars in a parallel-safe way.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 3 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index e978a6e1..ade98358 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -461,7 +461,6 @@ EXTRA_DIST = \
NEWS.0 \
POSIX.STD \
README_d \
- bisonfix.awk \
config.guess \
config.rpath \
config.sub \
@@ -1193,17 +1192,12 @@ dist-hook:
cp "$(srcdir)"/pc/config.h "$(distdir)"/pc/config.h
# Special rules for individual files
-# Use of awk instead of $(AWK) is deliberate, in case gawk doesn't build
-# or work correctly.
awkgram.c: awkgram.y
- $(YACC) $(AM_YFLAGS) $(YFLAGS) $<
- sed 's/parse error/syntax error/g' < y.tab.c | awk -f "$(srcdir)"/bisonfix.awk awkgram > $*.c && rm y.tab.c
- if test -f y.tab.h; then \
- if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
- else :; fi
+ $(YACC) -o $@ $(AM_YFLAGS) $(YFLAGS) $<
+ sed 's/parse error/syntax error/g' < $@ > $@.tmp && mv $@.tmp $@
-command.c: command.y awkgram.c
+command.c: command.y
$(YACC) -o $@ -p zz $<
sed 's/parse error/syntax error/g' < $@ > $@.tmp && mv $@.tmp $@