33 lines
727 B
Makefile
33 lines
727 B
Makefile
lint:
|
|
cargo fmt -- --check
|
|
cargo clippy --all-targets --all-features
|
|
|
|
format:
|
|
cargo fmt
|
|
|
|
tests: lint
|
|
cargo test
|
|
make remove-xlsx
|
|
|
|
remove-xlsx:
|
|
rm -f xlsx/hello-calc.xlsx
|
|
rm -f xlsx/hello-styles.xlsx
|
|
rm -f xlsx/widths-and-heights.xlsx
|
|
|
|
clean: remove-xlsx
|
|
cargo clean
|
|
rm -r -f base/target
|
|
rm -r -f xlsx/target
|
|
rm -f cargo-test-*
|
|
rm -f base/cargo-test-*
|
|
rm -f xlsx/cargo-test-*
|
|
|
|
|
|
coverage:
|
|
CARGO_INCREMENTAL=0 RUSTFLAGS='-C instrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test
|
|
grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/html
|
|
|
|
docs:
|
|
cargo doc --no-deps
|
|
|
|
.PHONY: lint format tests docs coverage all |