summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-09-14 10:14:32 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-09-14 10:19:13 +0200
commit6c7b2dfe516a0402ac37ccefb869b6633f05d5ea (patch)
tree8ae9bf9db6c9eecb428ce00c34548bef504802e4 /cfg.mk
parenta3e201de023615009948ffab9f1701bd92e2dec3 (diff)
downloadbison-6c7b2dfe516a0402ac37ccefb869b6633f05d5ea.tar.gz
tests: pass -jN from Make to the test suite
I am sooooo tired of typing "make -j5 TESTSUITEFLAGS=-j5"... Should have done this years ago. * cfg.mk (TESTSUITEFLAGS): here.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index a4383fc8..1170d6f3 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -26,6 +26,9 @@ regen: _version
manual_title = The Yacc-compatible Parser Generator
gendocs_options_ = -I $(abs_top_srcdir)/doc -I $(abs_top_builddir)/doc
+# By default, propagate -j from make to Bison's test suite.
+TESTSUITEFLAGS = $(filter -j%,$(MAKEFLAGS))
+
# It's useful to run maintainer-check* targets during development, but we
# don't want to wait on a recompile because of an update to $(VERSION). Thus,
# override the _is-dist-target from GNUmakefile so that maintainer-check*