Files
bitnet-s9pk/Makefile
2026-05-12 22:31:18 +00:00

30 lines
753 B
Makefile

# BitNet s9pk Makefile
PKG_ID := bitnet
PKG_VERSION := 1.0.0
TS_FILES := $(shell find . -name '*.ts' 2>/dev/null)
.PHONY: all clean install
# Default image
all: $(PKG_ID).s9pk
install: $(PKG_ID).s9pk
start-cli package install $(PKG_ID).s9pk
clean:
rm -f $(PKG_ID).s9pk
rm -f image.tar
# Build Docker image using remote Docker on MacBook
image.tar: Dockerfile docker_entrypoint.sh
@echo "Building Docker image on remote Docker (macbook)..."
docker -H ssh://macbook build --platform linux/amd64 --tag start9/$(PKG_ID)/main:$(PKG_VERSION) -o type=docker,dest=image.tar .
# Pack the s9pk
$(PKG_ID).s9pk: manifest.yaml image.tar instructions.md scripts/*.sh
@echo "Packing s9pk..."
start-cli s9pk pack \
--arch aarch64 \
--arch x86_64 \
.