From 81d0430ffd53f4a0cf933ad7398b04a30bf38e1e Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 1 Feb 2020 00:42:50 +0800 Subject: [PATCH] chore(makefile): remove GOPACKAGE variable --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 311f9ec..871d328 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ DEPLOY_IMAGE := $(EXECUTABLE) TARGETS ?= linux darwin windows ARCHS ?= amd64 386 -PACKAGES ?= $(shell $(GO) list ./...) SOURCES ?= $(shell find . -name "*.go" -type f) TAGS ?= LDFLAGS ?= -X 'main.Version=$(VERSION)' @@ -32,7 +31,7 @@ fmt: $(GOFMT) -w $(SOURCES) vet: - $(GO) vet $(PACKAGES) + $(GO) vet ./... lint: @hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ @@ -64,7 +63,7 @@ fmt-check: fi; test: fmt-check - @$(GO) test -v -cover -coverprofile coverage.txt $(PACKAGES) && echo "\n==>\033[32m Ok\033[m\n" || exit 1 + @$(GO) test -v -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1 install: $(SOURCES) $(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'