|
|
|
@ -17,7 +17,11 @@ checks: |
|
|
|
|
getdeps: |
|
|
|
|
@mkdir -p ${GOPATH}/bin
|
|
|
|
|
@which golint 1>/dev/null || (echo "Installing golint" && GO111MODULE=off go get -u golang.org/x/lint/golint)
|
|
|
|
|
ifeq ($(GOARCH),s390x) |
|
|
|
|
@which staticcheck 1>/dev/null || (echo "Installing staticcheck" && GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck)
|
|
|
|
|
else |
|
|
|
|
@which staticcheck 1>/dev/null || (echo "Installing staticcheck" && wget --quiet https://github.com/dominikh/go-tools/releases/download/2019.2.3/staticcheck_${GOOS}_${GOARCH}.tar.gz && tar xf staticcheck_${GOOS}_${GOARCH}.tar.gz && mv staticcheck/staticcheck ${GOPATH}/bin/staticcheck && chmod +x ${GOPATH}/bin/staticcheck && rm -f staticcheck_${GOOS}_${GOARCH}.tar.gz && rm -rf staticcheck)
|
|
|
|
|
endif |
|
|
|
|
@which misspell 1>/dev/null || (echo "Installing misspell" && GO111MODULE=off go get -u github.com/client9/misspell/cmd/misspell)
|
|
|
|
|
|
|
|
|
|
crosscompile: |
|
|
|
|