aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2022-12-06 20:01:54 -0800
committerMike Crute <mike@crute.us>2022-12-06 20:01:54 -0800
commitc3ebe1d90e78316c3031c7ea72d17030adcf7cca (patch)
tree315de762cdecafdde3a9fbd7bdccbed18c882ea4
parentc03e2c5051431d3942804e3e2ecb205e973f7537 (diff)
downloadses-smtpd-proxy-c3ebe1d90e78316c3031c7ea72d17030adcf7cca.tar.bz2
ses-smtpd-proxy-c3ebe1d90e78316c3031c7ea72d17030adcf7cca.tar.xz
ses-smtpd-proxy-c3ebe1d90e78316c3031c7ea72d17030adcf7cca.zip
Cleanup Makefile
-rw-r--r--Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 76bbcc6..0f18e4f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,20 @@
1DOCKER_REGISTRY ?= docker.crute.me 1BINARY ?= ses-smtpd-proxy
2DOCKER_IMAGE_NAME ?= ses-email-proxy 2DOCKER_IMAGE ?= docker.crute.me/ses-email-proxy:latest
3DOCKER_TAG ?= latest
4 3
5DOCKER_IMAGE_SPEC = $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_NAME):$(DOCKER_TAG) 4$(BINARY): main.go go.sum smtpd/smtpd.go
5 CGO_ENABLED=0 go build -o $@ $<
6 6
7.PHONY: docker 7.PHONY: docker
8docker: ses-smtpd-proxy 8docker: $(BINARY)
9 docker build -t $(DOCKER_IMAGE_SPEC) . 9 docker build -t $(DOCKER_IMAGE) .
10 10
11.PHONY: publish 11.PHONY: publish
12publish: docker 12publish: docker
13 docker push $(DOCKER_IMAGE_SPEC) 13 docker push $(DOCKER_IMAGE)
14 14
15ses-smtpd-proxy: main.go 15go.sum: go.mod
16 CGO_ENABLED=0 go build -o $@ $< 16 go mod tidy
17
18.PHONY: clean
19clean:
20 rm $(BINARY) || true