diff --git a/Makefile b/Makefile index e70b88e8..bc196745 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ tools: $(CONTROLLER_GEN) $(YAML_PATCH) $(OPENSHIFT_GOIMPORTS) ## Install tools build: WHAT ?= ./cmd/... build: - GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build $(BUILDFLAGS) -ldflags="$(LDFLAGS)" -o bin $(WHAT) + mkdir -p bin && GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build $(BUILDFLAGS) -ldflags="$(LDFLAGS)" -o bin $(WHAT) .PHONY: build goreleaser: