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