Tidy up Makefile.common

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2018-10-26 09:49:20 +02:00
parent ac16ef8f0e
commit 79e0fb5a3d
1 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,9 @@ $(warning Some recipes may not work as expected as the current Go runtime is '$(
else
# This repository isn't using Go modules (yet).
GOVENDOR := $(FIRST_GOPATH)/bin/govendor
GO111MODULE := auto
STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck
unexport GO111MODULE
endif
PROMU := $(FIRST_GOPATH)/bin/promu
pkgs = ./...
@ -156,7 +158,7 @@ promu:
ifeq (,$(wildcard go.mod))
.PHONY: $(STATICCHECK)
$(STATICCHECK):
GOOS= GOARCH= GO111MODULE=off $(GO) get -u honnef.co/go/tools/cmd/staticcheck
GOOS= GOARCH= $(GO) get -u honnef.co/go/tools/cmd/staticcheck
.PHONY: $(GOVENDOR)
$(GOVENDOR):