]> Sergey Matveev's repositories - public-inbox.git/commitdiff
Makefile.PL: allow N to be overridden
authorEric Wong <e@80x24.org>
Sat, 28 May 2016 01:57:10 +0000 (01:57 +0000)
committerEric Wong <e@80x24.org>
Sat, 28 May 2016 01:57:36 +0000 (01:57 +0000)
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.

Makefile.PL

index 3cffe13356de55505b0c9afbf55c2977417c2739..61cb77b6ce7c5a8e9c7758d9f6f90db20c8b8795 100644 (file)
@@ -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,,\$@)