.DEFAULT_GOAL = help
SHELL=bash
all-tests:
cargo test
cargo test -p iwlib_sys
check:
cargo clean
make all-tests
cargo fmt --all -- --check
cargo clippy -- -D warnings
cargo check
valgrind:
cargo valgrind
run:
cargo run
watch-build:
cargo watch -x build
watch-run:
cargo watch -x run
help:
@echo "Please use \`make <target>' where <target> is one of\n\n"
@awk '/^[a-zA-Z\-\_0-9]+:/ { \
helpMessage = match(lastLine, /^## (.*)/); \
if (helpMessage) { \
helpCommand = substr($$1, 0, index($$1, ":")); \
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \
printf "%-30s %s\n", helpCommand, helpMessage; \
} \
} \
{ lastLine = $$0 }' $(MAKEFILE_LIST)