Squashed 'components/zinit/' content from commit 1b76c06
git-subtree-dir: components/zinit git-subtree-split: 1b76c062fe31d552d1b7b23484ce163995a81482
This commit is contained in:
30
Makefile
Normal file
30
Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
default: release
|
||||
|
||||
docker: release
|
||||
docker build -f docker/Dockerfile -t zinit-ubuntu:18.04 target/x86_64-unknown-linux-musl/release
|
||||
|
||||
prepare:
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
release: prepare
|
||||
cargo build --release --target=x86_64-unknown-linux-musl
|
||||
|
||||
release-aarch64-musl: prepare-aarch64-musl
|
||||
cargo build --release --target=aarch64-unknown-linux-musl
|
||||
|
||||
prepare-aarch64-musl:
|
||||
rustup target add aarch64-unknown-linux-musl
|
||||
|
||||
# Build for macOS (both Intel and Apple Silicon)
|
||||
release-macos:
|
||||
cargo build --release
|
||||
|
||||
# Install to ~/hero/bin (if it exists)
|
||||
install-macos: release-macos
|
||||
@if [ -d ~/hero/bin ]; then \
|
||||
cp target/release/zinit ~/hero/bin; \
|
||||
echo "Installed zinit to ~/hero/bin"; \
|
||||
else \
|
||||
echo "~/hero/bin directory not found. Please create it or specify a different installation path."; \
|
||||
exit 1; \
|
||||
fi
|
||||
Reference in New Issue
Block a user