morningalarm/Makefile

21 lines
457 B
Makefile
Raw Permalink Normal View History

2023-08-25 20:44:44 +00:00
BINARY = morningalarm
BUILD_DIR = build
BUILD_ARCH = amd64
BUILD_OS = linux
.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/morningalarm.go
.PHONY:clean
clean:
rm -rf $(BUILD_DIR)
2023-08-26 00:20:40 +00:00
.PHONY: docker
docker:
docker buildx build --platform linux/arm64,linux/amd64,linux/arm/v7,linux/arm64/v8 -t djeeberjr/morningalarm . --push