diff options
author | Mathieu Othacehe <m.othacehe@gmail.com> | 2019-10-14 10:03:19 +0200 |
---|---|---|
committer | Mathieu Othacehe <m.othacehe@gmail.com> | 2019-10-14 10:03:19 +0200 |
commit | c206f1914e9299b3f9a8b8be295a02f14acc67b3 (patch) | |
tree | 7cd0441f380b53e64badd6ee063bbf7ccbdf27a5 /guix/build/scons-build-system.scm | |
parent | 4d14902b9402a83db444d8d6818d0a4f438ce8c4 (diff) | |
parent | 396b05f04ed5c5ad6141bd1b4f70f51561a97aad (diff) |
Merge remote-tracking branch 'signed/master' into core-updates
Diffstat (limited to 'guix/build/scons-build-system.scm')
-rw-r--r-- | guix/build/scons-build-system.scm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/guix/build/scons-build-system.scm b/guix/build/scons-build-system.scm index eb013f03b6..17a0b7b877 100644 --- a/guix/build/scons-build-system.scm +++ b/guix/build/scons-build-system.scm @@ -29,7 +29,7 @@ ;; ;; Code: -(define* (build #:key outputs (scons-flags '()) (parallel-build? #t) #:allow-other-keys) +(define* (build #:key outputs (build-targets '()) (scons-flags '()) (parallel-build? #t) #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (mkdir-p out) (apply invoke "scons" @@ -37,7 +37,8 @@ (list "-j" (number->string (parallel-job-count))) (list)) - scons-flags)))) + scons-flags + build-targets)))) (define* (check #:key tests? test-target (scons-flags '()) #:allow-other-keys) "Run the test suite of a given SCons application." @@ -46,9 +47,9 @@ (format #t "test suite not run~%")) #t) -(define* (install #:key outputs (scons-flags '()) #:allow-other-keys) +(define* (install #:key outputs (install-targets '("install")) (scons-flags '()) #:allow-other-keys) "Install a given SCons application." - (apply invoke "scons" "install" scons-flags)) + (apply invoke "scons" (append scons-flags install-targets))) (define %standard-phases (modify-phases gnu:%standard-phases |