mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
update makefile
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
b6c973ef1e
commit
7f168bd1cb
4
Makefile
4
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)
|
||||
|
Loading…
Reference in New Issue
Block a user