diff --git a/Makefile b/Makefile index f3442a7..0d5309e 100644 --- a/Makefile +++ b/Makefile @@ -28,12 +28,13 @@ install-setup-envtest: FORCE GO_BUILDFLAGS = GO_LDFLAGS = GO_TESTENV = +GO_BUILDENV = TESTBIN=$(shell pwd)/testbin build-all: build/ccloud-nodeCIDR-controller build/ccloud-nodeCIDR-controller: FORCE generate - go build $(GO_BUILDFLAGS) -ldflags '-s -w $(GO_LDFLAGS)' -o build/ccloud-nodeCIDR-controller . + @env $(GO_BUILDENV) go build $(GO_BUILDFLAGS) -ldflags '-s -w $(GO_LDFLAGS)' -o build/ccloud-nodeCIDR-controller . DESTDIR = ifeq ($(shell uname -s),Darwin) @@ -104,6 +105,7 @@ clean: FORCE vars: FORCE @printf "DESTDIR=$(DESTDIR)\n" + @printf "GO_BUILDENV=$(GO_BUILDENV)\n" @printf "GO_BUILDFLAGS=$(GO_BUILDFLAGS)\n" @printf "GO_COVERPKGS=$(GO_COVERPKGS)\n" @printf "GO_LDFLAGS=$(GO_LDFLAGS)\n"