add all target
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,6 +1,9 @@
|
|||||||
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
|
GODEPS = $(shell git ls-files '*.go' go.mod go.sum)
|
||||||
GOBIN = $(shell go env GOPATH)/bin/
|
GOBIN = $(shell go env GOPATH)/bin/
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: undocker coverage.html
|
||||||
|
|
||||||
undocker: $(GODEPS)
|
undocker: $(GODEPS)
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
||||||
|
|
||||||
@@ -25,3 +28,7 @@ coverage.out: $(GODEPS)
|
|||||||
|
|
||||||
coverage.html: coverage.out
|
coverage.html: coverage.out
|
||||||
go tool cover -html=$< -o $@
|
go tool cover -html=$< -o $@
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -f coverage.html undocker
|
||||||
|
|||||||
Reference in New Issue
Block a user