Update Makefile to create bin directory
@@ -18,6 +18,7 @@ GOTARGET = github.com/kubernetes-sigs/$(TARGET)
REGISTRY ?= quay.io/kubernetes-multicluster
IMAGE = $(REGISTRY)/$(TARGET)
DIR := ${CURDIR}
+BIN_DIR := bin
DOCKER ?= docker
GIT_VERSION ?= $(shell git describe --always --dirty)
@@ -84,10 +85,13 @@ container: controller
-t $(REGISTRY)/$(TARGET):$(GIT_VERSION)
rm -f images/federation-v2/controller-manager
-controller:
+$(BIN_DIR):
+ mkdir $(BIN_DIR)
+
+controller: $(BIN_DIR)
$(DOCKER_BUILD) '$(BUILD_CONTROLLER)'
-kubefed2:
+kubefed2: $(BIN_DIR)
$(DOCKER_BUILD) '$(BUILD_KUBEFED2)'
push:
