BINARY = {{cookiecutter.project_slug}} BUILD_DIR = build BUILD_ARCH = $(shell go env GOARCH) BUILD_OS = $(shell go env GOOS) .PHONY: all all: clean build .PHONY:build build: $(BUILD_DIR)/$(BINARY) $(BUILD_DIR)/$(BINARY): GOARCH=$(BUILD_ARCH) GOOS=$(BUILD_OS) go build -o $(BUILD_DIR)/$(BINARY) cmd/{{cookiecutter.project_slug}}.go .PHONY:clean clean: rm -rf $(BUILD_DIR) .PHONY: docker docker: docker buildx build --platform linux/arm64,linux/amd64,linux/arm/v7,linux/arm64/v8 -t djeeberjr/{{cookiecutter.project_slug}} . --push