## ##=============================================================================== ##make cargo-* cargo-help:### cargo-help @awk 'BEGIN {FS = ":.*?###"} /^[a-zA-Z_-]+:.*?###/ {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) cargo-release-all:### cargo-release-all ## cargo-release-all recurively cargo build --release for t in */Cargo.toml; do echo $$t; cargo b -r -vv --manifest-path $$t; done cargo-clean-all:### cargo-clean-all - clean release artifacts ## cargo-clean-all recurively cargo clean --release for t in */Cargo.toml; do echo $$t; cargo clean --release -vv --manifest-path $$t; done cargo-install-all:### cargo-install-all ## cargo-install-all recurively cargo install -vv $(SUBMODULES) ## *** cargo install -vv --force is NOT used. ## *** cargo install -vv --force --path ## *** to overrite deploy cargo.io crates. for t in $(SUBMODULES); do echo $$t; cargo install -vv $$t || echo "$$t not found"; done cargo-b:cargo-build### cargo b cargo-build:### cargo build ## cargo-build q=true @. $(HOME)/.cargo/env @RUST_BACKTRACE=all cargo b $(QUIET) cargo-i:cargo-install cargo-install:### cargo install --path . #@. $(HOME)/.cargo/env @cargo install --path $(PWD) cargo-br:cargo-build-release### cargo-br ## cargo-br q=true cargo-build-release:### cargo-build-release ## cargo-build-release q=true @. $(HOME)/.cargo/env @cargo b --release $(QUIET) cargo-check:### cargo-check @. $(HOME)/.cargo/env @cargo c cargo-bench:### cargo-bench @. $(HOME)/.cargo/env @cargo bench cargo-test:### cargo-test @. $(HOME)/.cargo/env @cargo test cargo-report:### cargo-report @. $(HOME)/.cargo/env cargo report future-incompatibilities --id 1 # vim: set noexpandtab: # vim: set setfiletype make