-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1 KB
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
default: release
example:
cargo run --offline --release --example ${example}
test:
ifdef test
cargo test $(test) --offline
else
cargo test --offline
endif
test_multithread:
ifdef test
cargo test $(test) --offline --features "multithread_ft"
else
cargo test --offline --features "multithread_ft"
endif
test_opencl:
ifdef test
cargo test $(test) --offline --no-default-features --features "opencl"
else
cargo test --offline --features --no-default-features --features "opencl"
endif
clippy:
cargo clippy --offline
clippy_opencl:
cargo clippy --offline --features "opencl"
debug:
cargo build --offline
debug_multithread:
cargo build --offline --features "multithread_ft"
debug_opencl:
cargo build --offline --no-default-features --features "opencl"
release:
cargo build --release --offline
release_multithread:
cargo build --release --offline --features "multithread_ft"
release_opencl:
cargo build --release --no-default-features --offline --features "opencl"
clean:
rm -r target; rm Cargo.lock