From 86b7c30680654f78b29accdb987f35e61ff7fbe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 1 Jun 2021 08:49:39 +0300 Subject: [PATCH] add `undocker` target --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09c6980..9b27981 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,14 @@ +GODEPS = $(shell git ls-files '*.go' go.mod go.sum) + +undocker: $(GODEPS) + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build + .PHONY: test test: go test -cover ./... .INTERMEDIATE: coverage.out -coverage.out: $(shell git ls-files '*.go') +coverage.out: $(GODEPS) go test -coverprofile $@ ./... coverage.html: coverage.out