PRIMARY_TARGET := $(firstword $(MAKECMDGOALS))
ARGS := $(filter-out $(PRIMARY_TARGET), $(MAKECMDGOALS))
.PHONY: git-hooks
git-hooks:
git config core.hooksPath ./git-hooks;
.PHONY: init
init: git-hooks
.PHONY: fmt
fmt: init
cargo fmt
.PHONY: test-all
test-all:
.PHONY: test
test: init
RUST_BACKTRACE=1 cargo test ${ARGS} --all-features -- --no-capture --test-threads=1
.PHONY: test_release
test_release: init
RUST_BACKTRACE=1 cargo test ${ARGS} --all-features --release -- --no-capture --test-threads=1
.PHONY: build
build: init
cargo build
.PHONY: build_nostd
build_nostd: init
cargo build --no-default-features
.DEFAULT_GOAL = build
%:
@: