Files
zosbuilder/Makefile
Jan De Landtsheer 2fda71af11 Squashed 'components/zinit/' content from commit 1b76c06
git-subtree-dir: components/zinit
git-subtree-split: 1b76c062fe31d552d1b7b23484ce163995a81482
2025-08-16 21:12:16 +02:00

31 lines
833 B
Makefile

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