-
Notifications
You must be signed in to change notification settings - Fork 0
/
sakefile.scm
38 lines (32 loc) · 906 Bytes
/
sakefile.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(define modules
'(algorithm/compare
algorithm/comprehension
algorithm/list
algorithm/list-extra
algorithm/random
algorithm/shuffle
algorithm/sort-merge
algorithm/stream
algorithm/stream-extra
algorithm/u8vector
algorithm/vector
structure/array
structure/hash-table
structure/multi-dimensional-array
structure/stream))
(define-task compile ()
(sake#parallel-for-each
(lambda (m)
(sake#compile-module m cond-expand-features: '(debug) version: '(debug))
(sake#compile-module m cond-expand-features: '(optimize)))
modules))
(define-task post-compile ()
(for-each (lambda (m) (sake#make-module-available m versions: '(()))) modules))
(define-task install ()
(sake#install-sphere-to-system))
(define-task test ()
(sake#test-all))
(define-task clean ()
(sake#default-clean))
(define-task all (compile post-compile)
'all)