18 lines
481 B
Makefile
18 lines
481 B
Makefile
.PHONY: docker clean
|
|
|
|
SOURCES=$(wildcard *.go)
|
|
|
|
videodog videodog.exe: ${SOURCES}
|
|
go build
|
|
|
|
docker: videodog-docker-linux-amd64.tar videodog-docker-linux-arm64.tar
|
|
|
|
videodog-docker-linux-amd64.tar: ${SOURCES}
|
|
docker save -o $@ $(shell docker build -q --platform=linux/amd64 .)
|
|
|
|
videodog-docker-linux-arm64.tar: ${SOURCES}
|
|
docker save -o $@ $(shell docker build -q --platform=linux/arm64 .)
|
|
|
|
clean:
|
|
rm -f videodog videodog-docker-linux-amd64.tar videodog-docker-linux-arm64.tar
|