From: Eric Wong Date: Wed, 29 May 2019 08:29:30 +0000 (+0000) Subject: Makefile.PL: allow `N' variable to be set in local config.mak X-Git-Tag: v1.2.0~215 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=f8fb6c1e6d50c2dc3467c27a397f9c3c95b75b81 Makefile.PL: allow `N' variable to be set in local config.mak This can useful for limiting test resource use without relying on remembering the variable command-line. --- diff --git a/Makefile.PL b/Makefile.PL index de0c49fd..f79697ba 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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))