-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 671 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 671 Bytes
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
JAVAC=javac
TEST_JAVA=$(wildcard tests/classes/Test*.java)
TEST_CLASSES=$(TEST_JAVA:.java=.class)
%.class: %.java
$(JAVAC) $<
clean:
rm -f $(TEST_CLASSES)
test: $(TEST_CLASSES)
cargo test
lint:
cargo clippy
fmt:
cargo +nightly fmt
coverage: $(TEST_CLASSES)
rm -rf *.profraw
rm -rf ./target/debug/coverage/
RUSTFLAGS="-Cinstrument-coverage" LLVM_PROFILE_FILE="coverage-%p-%m.profraw" cargo test
grcov . -s . --binary-path ./target/debug/ --ignore "**/test*" -t html --branch --ignore-not-existing -o ./target/debug/coverage/
show-coverage:
firefox ./target/debug/coverage/index.html
release:
cargo build --release
.PHONY: lint coverage show-coverage