-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 993 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
include tools/docker/docker.mk
.SHELLFLAGS = -e -c
DOCKER := $(foreach target,$(DOCKER_TARGETS),docker.$(target))
.PHONY: all build check clean codecov docs examples libtpms package publish tests $(DOCKER)
all: clean check build
check:
cargo check --release --locked --all-targets
tests:
CARGO_PROFILE_RELEASE_DEBUG=true \
RUST_BACKTRACE=1 \
cargo test --release --tests --locked -- --test-threads=1
build:
cargo build --release --locked
examples:
for i in $(basename $(notdir $(wildcard examples/*.rs))); do \
cargo run --example $$i; \
done
docs:
cargo doc --no-deps --locked
format:
cargo fmt --all $(if $(APPLY_FMT),,--check)
package:
cargo package --locked
publish:
cargo publish --locked
clean:
rm -rf target $(if $(CARGO_TARGET_DIR),"$(CARGO_TARGET_DIR)")
libtpms:
./tools/libtpms/libtpms-test-runner.sh --include-ignored
codecov:
./tools/codecov/code-coverage.sh ccov target/llvm-cov/codecov-output.json
$(DOCKER): docker.%:
$(MAKE) -C tools/docker $*