-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (27 loc) · 878 Bytes
/
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
clippy:
@cargo clippy -- -D warnings
check:
@cargo check
release:
@cargo build --release
fmt:
@cargo +nightly fmt
test:
@cargo test test_expression_values_brackets --tests -- --nocapture
atest:
@cargo test --all
cover:
@export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" \
&& export CARGO_INCREMENTAL=0 \
&& export RUSTDOCFLAGS="-Cpanic=abort" \
&& rm -rf ./target \
&& cargo +nightly build --all \
&& cargo +nightly test --all \
&& grcov ./target/debug/ -s . -t html --llvm --branch --ignore-not-existing -o ./target/debug/coverage/ \
&& firefox ./target/debug/coverage/index.html \
&& export RUSTFLAGS="" && cargo clippy && cargo test
tst:
@cargo test test_codegen_variable_let_and_print -- --nocapture
x: release
@target/release/i-lang tst.i
@ls -la build