Makefile: allow setting HGTESTFLAGS in shell environment for TESTFLAGS
authorAugie Fackler <augie@google.com>
Wed, 04 Feb 2015 15:17:13 -0500
changeset 24195 250d9cf97fb3
parent 24194 00809c43d72c
child 24196 c3d13202144d
Makefile: allow setting HGTESTFLAGS in shell environment for TESTFLAGS I keep wanting to run 'make tests', but I forget to set TESTFLAGS='-j 16' or whatever is reasonable for my machine. This lets me just set it once in my shell settings and forget it.
Makefile
--- a/Makefile	Wed Feb 04 12:26:16 2015 -0500
+++ b/Makefile	Wed Feb 04 15:17:13 2015 -0500
@@ -14,6 +14,7 @@
 DOCFILES=mercurial/help/*.txt
 export LANGUAGE=C
 export LC_ALL=C
+TESTFLAGS ?= $(shell echo $$HGTESTFLAGS)
 
 # Set this to e.g. "mingw32" to use a non-default compiler.
 COMPILER=