summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 9ba53130c0..29f614280f 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -676,7 +676,10 @@ install.html: all installhtml
# to run with precisely the same version of byacc as I use. You
# normally shouldn't remake perly.[ch].
-run_byacc: FORCE
+check_byacc:
+ @$(BYACC) -V 2>&1 | grep 'version 1\.8\.2'
+
+run_byacc: FORCE check_byacc
$(BYACC) -d perly.y
-chmod 664 perly.c perly.h
sh $(shellflags) ./perly.fixer y.tab.c perly.c