clap/clap-tests/Makefile

15 lines
274 B
Makefile
Raw Normal View History

.PHONY: build test clean
2015-03-25 21:02:21 +00:00
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 || :
2015-03-25 21:02:21 +00:00
cargo build --release
test:
$(MAKE) build || ($(MAKE) clean && false)
./run_tests.py
2015-03-25 21:02:21 +00:00
clean:
2015-03-26 00:50:25 +00:00
cargo clean