mirror of
https://github.com/zaphar/sheetsui.git
synced 2025-07-22 13:00:22 -04:00
24 lines
448 B
Makefile
24 lines
448 B
Makefile
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
|
|
rust_files=$(call rwildcard,src,*.rs)
|
|
|
|
test: $(rust-files)
|
|
cargo test
|
|
|
|
build: $(rust-files)
|
|
cargo build
|
|
|
|
tarpaulin-report.%: $(rust_files)
|
|
cargo tarpaulin --skip-clean --engine llvm --out $*
|
|
|
|
cover: tarpaulin-report.html
|
|
|
|
view-cover: tarpaulin-report.html
|
|
open $<
|
|
|
|
clean-tarpaulin:
|
|
rm -f tarpaulin-report.*
|
|
|
|
clean: clean-tarpaulin
|
|
cargo clean
|
|
|