mkdir -p kail-dir for bootstrapping.
Change-Id: I638649527de4df2dda2dc1848439904e3e7ee97a
diff --git a/VERSION b/VERSION
index aab16c0..fb4fcb1 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.12.7.1-dev
+2.12.7.1-dev1
diff --git a/makefiles/commands/kail.mk b/makefiles/commands/kail.mk
index ff6691d..f757a33 100644
--- a/makefiles/commands/kail.mk
+++ b/makefiles/commands/kail.mk
@@ -35,6 +35,7 @@
KAIL_PATH ?= $(if $(WORKSPACE),$(WORKSPACE)/bin,/usr/local/bin)
kail-cmd ?= $(KAIL_PATH)/kail
$(kail-cmd):
+ mkdir -p "$(dir $@)"
etc/godownloader.sh -b .
rsync -v --checksum kail "$@"
$@ version
diff --git a/makefiles/commands/kind.mk b/makefiles/commands/kind.mk
index 4359083..81c68b1 100644
--- a/makefiles/commands/kind.mk
+++ b/makefiles/commands/kind.mk
@@ -36,8 +36,9 @@
# + revisit this, system directories should not be a default path.
# + requires sudo and potential exists for overwrite conflict.
# -----------------------------------------------------------------------
-KIND_PATH ?= $(if $(WORKSPACE),$(WORKSPACE)/bin,$(PWD)/bin)
-kind-cmd ?= $(KIND_PATH)/kind.$(kind-cmd-ver).$(kind-cmd-bin)
+KIND_PATH ?= $(if $(WORKSPACE),$(WORKSPACE)/bin,$(PWD)/bin)
+kind-cmd-link ?= $(KIND_PATH)/kind
+kind-cmd ?= $(kind-cmd-link).$(kind-cmd-ver).$(kind-cmd-bin)
$(kind-cmd):
@echo "kind-cmd = $(kind-cmd)"
mkdir -p $(dir $(kind-cmd))
@@ -45,13 +46,13 @@
chmod +x "$@"
"$@" --version
-bin/kind : $(kind-cmd)
+$(kind-cmd-link) : $(kind-cmd)
ln -fns $< $@
## -----------------------------------------------------------------------
## -----------------------------------------------------------------------
.PHONY: install-command-kind
-install-command-kind : bin/kind
+install-command-kind : $(kind-cmd-link)
clean ::
$(RM) bin/kind $(kind-cmd)