commit
6341c4ab9d
7
Makefile
7
Makefile
|
@ -1,12 +1,13 @@
|
|||
.PHONY: ke
|
||||
|
||||
BINARY="ke"
|
||||
|
||||
GOBIN=$(shell go env GOPATH)/bin
|
||||
fmt:
|
||||
gofmt -w ./pkg ./cmd
|
||||
|
||||
ke:
|
||||
CGO_ENABLED=0 go build -o ${BINARY}
|
||||
GO111MODULE=on GOPROXY=https://proxy.golang.org CGO_ENABLED=0 go get -u github.com/gobuffalo/packr/v2/packr2
|
||||
$(GOBIN)/packr2 build -a -o ${BINARY} main.go
|
||||
|
||||
# install kubeye
|
||||
install: ke
|
||||
|
@ -23,4 +24,4 @@ install-goreleaser:
|
|||
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
|
||||
|
||||
build-multiarch: install-goreleaser
|
||||
./bin/goreleaser release --snapshot --skip-publish --rm-dist
|
||||
./bin/goreleaser release --snapshot --skip-publish --rm-dist
|
||||
|
|
Loading…
Reference in New Issue