mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-23 03:32:30 +03:00
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
|
|
.PHONY: debug build-release release-linux-musl test clippy clippy-pedantic install install-debug
|
|
|
|
ARGS=-l
|
|
# ARGS=-l -d <some_path>
|
|
|
|
profile:
|
|
cargo run --features=timing,pprof -- ${ARGS}
|
|
|
|
run-timing:
|
|
cargo run --features=timing --release -- ${ARGS}
|
|
|
|
debug:
|
|
RUST_BACKTRACE=true cargo run --features=timing -- ${ARGS}
|
|
|
|
build-release:
|
|
cargo build --release
|
|
|
|
release-mac: build-release
|
|
strip target/release/gitui
|
|
otool -L target/release/gitui
|
|
mkdir -p release
|
|
tar -C ./target/release/ -czvf ./release/gitui-mac.tar.gz ./gitui
|
|
ls -lisah ./release/gitui-mac.tar.gz
|
|
|
|
release-win: build-release
|
|
mkdir -p release
|
|
tar -C ./target/release/ -czvf ./release/gitui-win.tar.gz ./gitui.exe
|
|
cargo install cargo-wix
|
|
cargo wix --no-build --nocapture --output ./release/gitui.msi
|
|
ls -l ./release/gitui.msi
|
|
|
|
release-linux-musl: build-linux-musl-release
|
|
strip target/x86_64-unknown-linux-musl/release/gitui
|
|
mkdir -p release
|
|
tar -C ./target/x86_64-unknown-linux-musl/release/ -czvf ./release/gitui-linux-musl.tar.gz ./gitui
|
|
|
|
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
|
|
|
|
test:
|
|
cargo test --workspace
|
|
|
|
fmt:
|
|
cargo fmt -- --check
|
|
|
|
clippy:
|
|
touch src/main.rs
|
|
cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
|
|
cargo clippy --workspace --all-features
|
|
|
|
clippy-nightly:
|
|
touch src/main.rs
|
|
cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
|
|
cargo +nightly clippy --workspace --all-features
|
|
|
|
check: fmt clippy test
|
|
|
|
install:
|
|
cargo install --path "." --offline
|
|
|
|
install-timing:
|
|
cargo install --features=timing --path "." --offline
|