mirror of
https://github.com/clap-rs/clap
synced 2024-11-14 16:47:21 +00:00
d17dcb2920
* assure `make test` works on OSX as well * simplified entire makefile, by basically removing sed invocations to manipulate the Cargo.toml file under source control. * *works for me* predicate This should probably be tested on another system as well, just to be sure it makes sense for everyone.
14 lines
274 B
Makefile
14 lines
274 B
Makefile
.PHONY: build test clean
|
|
|
|
build:
|
|
# It may be that this project was never built, and no Cargo.lock exists.
|
|
# Thus it may be ignored
|
|
cargo update 2>/dev/null || :
|
|
cargo build --release
|
|
|
|
test:
|
|
$(MAKE) build || ($(MAKE) clean && false)
|
|
./run_tests.py
|
|
|
|
clean:
|
|
cargo clean
|