From 1a5aab3ff420eae51ab6ca993ef5ff198a5f2ff9 Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Mon, 18 Jun 2018 07:42:13 -0700 Subject: [PATCH] Makefile: Create bin directory if it doesn't exist (#2466) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a96ed68d..5f2c7742 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ pkg-list: # Builds minio and installs it to $GOPATH/bin. install: build @echo "Installing mc binary to '$(GOPATH)/bin/mc'" - @cp $(PWD)/mc $(GOPATH)/bin/mc + @mkdir -p $(GOPATH)/bin && cp $(PWD)/mc $(GOPATH)/bin/mc @echo "Installation successful. To learn more, try \"mc --help\"." clean: