From: Eric Wong Date: Sat, 28 May 2016 01:57:10 +0000 (+0000) Subject: Makefile.PL: allow N to be overridden X-Git-Tag: v1.0.0~482 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=0c9bc00d62e027ebee873f51d51e3dd0832e6e41 Makefile.PL: allow N to be overridden Relying on the number of processors isn't a great idea since some of our tests rely on delays to test blocking and slow client behavior. --- diff --git a/Makefile.PL b/Makefile.PL index 3cffe133..61cb77b6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -40,10 +40,10 @@ sub MY::postamble { EATMYDATA = -include config.mak -include Documentation/include.mk +N ?= \$(shell echo \$\$(( \$\$(nproc 2>/dev/null || echo 2) + 1))) SCRIPTS := scripts/ssoma-replay my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES) \$(SCRIPTS)) -N := \$(shell echo \$\$(( \$\$(nproc 2>/dev/null || echo 2) + 1))) %.syntax :: @\$(PERL) -I lib -c \$(subst .syntax,,\$@)