]> Sergey Matveev's repositories - public-inbox.git/commitdiff
Makefile.PL: allow `N' variable to be set in local config.mak
authorEric Wong <e@80x24.org>
Wed, 29 May 2019 08:29:30 +0000 (08:29 +0000)
committerEric Wong <e@80x24.org>
Wed, 29 May 2019 08:34:51 +0000 (08:34 +0000)
This can useful for limiting test resource use without relying
on remembering the variable command-line.

Makefile.PL

index de0c49fd8e2c5660c08f913cadd1371e4b7e7116..f79697ba22960b22a25c283a48450a730478015b 100644 (file)
@@ -53,9 +53,9 @@ sub MY::postamble {
 # support using eatmydata to speed up tests (apt-get install eatmydata):
 # https://www.flamingspork.com/projects/libeatmydata/
 EATMYDATA =
+N = \$\$(( \$\$(nproc 2>/dev/null || gnproc 2>/dev/null || echo 2) + 1 ))
 -include config.mak
 -include Documentation/include.mk
-N = \$\$(( \$\$(nproc 2>/dev/null || gnproc 2>/dev/null || echo 2) + 1 ))
 SCRIPTS := scripts/ssoma-replay
 my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES) \$(SCRIPTS))