diff --git a/Makefile b/Makefile index e6379bc..93247e6 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ GOFMT ?= gofmt "-s" TARGETS ?= linux darwin windows PACKAGES ?= $(shell go list ./... | grep -v /vendor/) -GOFILES := find . -name "*.go" -type f -not -path "./vendor/*" +GOFILES := $(shell find . -name "*.go" -type f -not -path "./vendor/*") SOURCES ?= $(shell find . -name "*.go" -type f) TAGS ?= LDFLAGS ?= -X 'main.Version=$(VERSION)' @@ -39,7 +39,7 @@ fmt-check: fi; fmt: - $(GOFILES) | xargs $(GOFMT) -w + $(GOFMT) -w $(GOFILES) vet: go vet $(PACKAGES)