gnu: linux-libre-documentation: Honour ‘--cores’.

* gnu/packages/linux.scm (linux-libre-documentation)[arguments]:
Respect PARALLEL-BUILD? and PARALLEL-JOB-COUNT.
This commit is contained in:
Tobias Geerinckx-Rice 2023-02-26 01:00:00 +01:00
parent cd22932945
commit 73cb232442
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -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"))