From 73cb232442a50aa00104ad739db93f44df9de073 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 26 Feb 2023 01:00:00 +0100 Subject: gnu: linux-libre-documentation: Honour ‘--cores’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/linux.scm (linux-libre-documentation)[arguments]: Respect PARALLEL-BUILD? and PARALLEL-JOB-COUNT. --- gnu/packages/linux.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 3601744c51..3ca2a79666 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1852,11 +1852,14 @@ (define-public linux-libre-documentation #:phases #~(modify-phases %standard-phases (delete 'configure) (replace 'build - (lambda _ + (lambda* (#:key parallel-build? #:allow-other-keys) (substitute* "Documentation/Makefile" ;; Remove problematic environment check script. ((".*scripts/sphinx-pre-install.*") "")) - (invoke "make" "infodocs"))) + (invoke "make" "infodocs" + "-j" (if parallel-build? + (number->string (parallel-job-count)) + "1")))) (replace 'install (lambda _ (let* ((info-dir (string-append #$output "/share/info")) -- cgit v1.2.3