gitui/Makefile

67 lines
1.6 KiB
Makefile
Raw Normal View History

2020-03-22 04:45:42 +03:00
.PHONY: debug build-release release-linux-musl test clippy clippy-pedantic install install-debug
2020-03-28 22:47:29 +03:00
2020-07-04 15:59:30 +03:00
profile:
cargo run --features=timing,pprof -- -l
2020-03-22 04:45:42 +03:00
debug:
cargo run --features=timing -- -l
2020-03-22 04:45:42 +03:00
2020-04-06 11:18:26 +03:00
build-release:
cargo build --release
2020-04-15 17:36:40 +03:00
release-mac: build-release
strip target/release/gitui
mkdir -p release
tar -C ./target/release/ -czvf ./release/gitui-mac.tar.gz ./gitui
2020-06-15 03:25:18 +03:00
ls -lisah ./release/gitui-mac.tar.gz
2020-04-15 17:36:40 +03:00
2020-04-19 20:20:30 +03:00
release-win: build-release
mkdir -p release
2020-04-19 20:27:39 +03:00
tar -C ./target/release/ -czvf ./release/gitui-win.tar.gz ./gitui.exe
2020-10-26 03:18:04 +03:00
cargo install cargo-wix
cargo wix init
cargo wix --no-build --nocapture --output ./release/gitui.msi
ls -l ./release/gitui.msi
2020-04-19 20:20:30 +03:00
release-linux-musl: build-linux-musl-release
strip target/x86_64-unknown-linux-musl/release/gitui
2020-04-15 17:36:40 +03:00
mkdir -p release
tar -C ./target/x86_64-unknown-linux-musl/release/ -czvf ./release/gitui-linux-musl.tar.gz ./gitui
2020-04-06 11:18:26 +03:00
build-linux-musl-debug:
cargo build --target=x86_64-unknown-linux-musl
build-linux-musl-release:
cargo build --release --target=x86_64-unknown-linux-musl
test-linux-musl:
cargo test --workspace --target=x86_64-unknown-linux-musl
2020-03-26 12:08:28 +03:00
test:
cargo test --workspace
2020-03-26 12:08:28 +03:00
2020-05-23 16:23:53 +03:00
fmt:
2020-05-22 23:43:47 +03:00
cargo fmt -- --check
2020-05-23 16:23:53 +03:00
clippy:
2020-06-06 20:24:48 +03:00
touch src/main.rs
cargo clean -p gitui -p asyncgit -p scopetime
2020-03-27 02:50:02 +03:00
cargo clippy --all-features
2020-03-27 02:41:59 +03:00
2020-09-27 19:56:20 +03:00
clippy-nightly:
touch src/main.rs
cargo clean -p gitui -p asyncgit -p scopetime
cargo +nightly clippy --all-features
2020-05-23 16:23:53 +03:00
clippy-pedantic:
2020-05-22 23:43:47 +03:00
cargo clean -p gitui -p asyncgit -p scopetime
2020-03-27 03:11:15 +03:00
cargo clippy --all-features -- -W clippy::pedantic
2020-07-18 13:22:17 +03:00
check: fmt clippy test
2020-05-23 16:23:53 +03:00
2020-03-22 04:45:42 +03:00
install:
2020-06-29 17:00:21 +03:00
cargo install --path "." --offline
2020-03-22 04:45:42 +03:00
2020-06-29 17:00:21 +03:00
install-timing:
2020-05-05 14:47:21 +03:00
cargo install --features=timing --path "." --offline