gnu: knot: Honour PARALLEL-BUILD?.
* gnu/packages/dns.scm (knot)[arguments]: Spawn multiple make jobs if requested.master
parent
fdb4540f78
commit
7f5e881e31
|
@ -870,19 +870,30 @@ Extensions} (DNSSEC).")
|
||||||
;; This is needed even when using ‘make config_dir=... install’.
|
;; This is needed even when using ‘make config_dir=... install’.
|
||||||
(substitute* "src/Makefile.in" (("\\$\\(INSTALL\\) -d") "true"))))
|
(substitute* "src/Makefile.in" (("\\$\\(INSTALL\\) -d") "true"))))
|
||||||
(add-after 'build 'build-info
|
(add-after 'build 'build-info
|
||||||
(lambda _
|
(lambda* (#:key make-flags parallel-build? #:allow-other-keys)
|
||||||
(invoke "make" "info")))
|
(apply invoke "make" "info"
|
||||||
|
`(,@(if parallel-build?
|
||||||
|
`("-j" ,(number->string (parallel-job-count)))
|
||||||
|
'())
|
||||||
|
,@make-flags))))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key make-flags outputs parallel-build? #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(doc (string-append out "/share/doc/" ,name "-" ,version))
|
(doc (string-append out "/share/doc/" ,name "-" ,version))
|
||||||
(etc (string-append doc "/examples/etc")))
|
(etc (string-append doc "/examples/etc")))
|
||||||
(invoke "make"
|
(apply invoke "make" "install"
|
||||||
(string-append "config_dir=" etc)
|
(string-append "config_dir=" etc)
|
||||||
"install"))))
|
`(,@(if parallel-build?
|
||||||
|
`("-j" ,(number->string (parallel-job-count)))
|
||||||
|
'())
|
||||||
|
,@make-flags)))))
|
||||||
(add-after 'install 'install-info
|
(add-after 'install 'install-info
|
||||||
(lambda _
|
(lambda* (#:key make-flags parallel-build? #:allow-other-keys)
|
||||||
(invoke "make" "install-info")))
|
(apply invoke "make" "install-info"
|
||||||
|
`(,@(if parallel-build?
|
||||||
|
`("-j" ,(number->string (parallel-job-count)))
|
||||||
|
'())
|
||||||
|
,@make-flags))))
|
||||||
(add-after 'install 'break-circular-:lib->:out-reference
|
(add-after 'install 'break-circular-:lib->:out-reference
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((lib (assoc-ref outputs "lib")))
|
(let ((lib (assoc-ref outputs "lib")))
|
||||||
|
|
Reference in New Issue