forked from Michael-F-Bryan/include_dir
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcargo.mk
executable file
·53 lines (51 loc) · 2.53 KB
/
cargo.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##
##===============================================================================
##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 recursively cargo build --release
for t in */Cargo.toml; do echo $$t; cargo b -r -vv --manifest-path $$t; done
for t in ffi/*/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 recursively 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 recursively cargo install -vv $(SUBMODULES)
## *** cargo install -vv --force is NOT used.
## *** cargo install -vv --force --path <path>
## *** to overwrite deploy cargo.io crates.
for t in $(SUBMODULES); do echo $$t; cargo install -vv gnostr-$$t || echo "gnostr-$$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) --features glob --features metadata
cargo-i:cargo-install
cargo-install:### cargo install --path jj
@. $(HOME)/.cargo/env
@cargo install --bin include_dir_example --path include_dir --features metadata --features glob
@cargo install --bin include_dir-example --path include_dir --features metadata --features glob
cargo-br:cargo-build-release### cargo-br
## cargo-br q=true
cargo b -r --features glob --features metadata
cargo-build-release:### cargo-build-release
## cargo-build-release q=true
@. $(HOME)/.cargo/env && cargo b --release $(QUIET) --features glob --features metadata
cargo-c:cargo-check
cargo-check:### cargo-check
@. $(HOME)/.cargo/env && cargo c --features glob --features metadata
cargo-bench:### cargo-bench
@. $(HOME)/.cargo/env && cargo bench --features glob --features metadata
cargo-t:cargo-test
cargo-test:### cargo-test
@. $(HOME)/.cargo/env && cargo test --verbose
@. $(HOME)/.cargo/env && cargo test --verbose --features glob
@. $(HOME)/.cargo/env && cargo test --verbose --features glob --features metadata
cargo-t-wp:cargo-test-workspace
cargo-test-workspace:### cargo-test-workspace
@. $(HOME)/.cargo/env && cargo test --workspace --verbose --features glob --features metadata
cargo-report:### cargo-report
@. $(HOME)/.cargo/env && cargo report future-incompatibilities --id 1
# vim: set noexpandtab:
# vim: set setfiletype make