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