kubeeye/Makefile

27 lines
500 B
Makefile
Raw Normal View History

.PHONY: ke
2020-11-19 14:53:27 +08:00
BINARY="ke"
GOBIN=$(shell go env GOPATH)/bin
fmt:
gofmt -w ./pkg ./cmd
2020-11-27 17:20:00 +08:00
2021-01-14 22:50:19 +08:00
test: fmt
GO111MODULE=on go test -v ./pkg/...
install-packr2:
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} *.go
2021-01-14 22:50:19 +08:00
ke: install-packr2
# install KubeEye
install: ke
mv ${BINARY} /usr/local/bin/
clean:
rm ${BINARY}
# uninstall KubeEye from local computer
uninstall:
rm /usr/local/bin/${BINARY} 2> /dev/null