18 lines
622 B
Makefile
18 lines
622 B
Makefile
.PHONY: image
|
|
image: dst/image/zmp24 dst/image/Containerfile dst/image/run.sh config.json
|
|
cd dst/image && podman build . -t \
|
|
"$$(jq -r .image.name ../../config.json):$$(jq -r .image.version ../../config.json)"
|
|
|
|
dst/image: dst
|
|
mkdir dst/image
|
|
|
|
dst/image/Containerfile: dst/image image/image.dockerfile
|
|
ln -sf $$(pwd)/image/image.dockerfile dst/image/Containerfile
|
|
|
|
dst/image/run.sh: dst/image image/run.sh
|
|
ln -f image/run.sh dst/image/run.sh
|
|
chmod +x dst/image/run.sh
|
|
|
|
dst/image/zmp24: dst/image target/$(ARCH)-unknown-linux-musl/release/zmp24
|
|
ln -f target/$(ARCH)-unknown-linux-musl/release/zmp24 dst/image/zmp24
|