clap/clap-tests/Makefile
Sebastian Thiel d17dcb2920 imp(clap-test): simplified make test invocation
* 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.
2015-05-05 17:12:20 -04:00

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