From 8d298610f222c980bf98729f7bde0d6bd8fe3fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 1 Jun 2021 19:54:55 +0300 Subject: [PATCH] add `all` target --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index ad9f099..4b3832b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ GODEPS = $(shell git ls-files '*.go' go.mod go.sum) GOBIN = $(shell go env GOPATH)/bin/ +.PHONY: all +all: undocker coverage.html + undocker: $(GODEPS) CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build @@ -25,3 +28,7 @@ coverage.out: $(GODEPS) coverage.html: coverage.out go tool cover -html=$< -o $@ + +.PHONY: clean +clean: + rm -f coverage.html undocker