From edabd87ea83257d4ef221b88a528c997cb19cb18 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Thu, 29 Jun 2017 10:53:19 +0900 Subject: [PATCH] Copy binary under the bin directory --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f86b30e06..b9b176072 100644 --- a/Makefile +++ b/Makefile @@ -50,8 +50,9 @@ dev: deps ## Build and install a development build exit 1; \ fi @mkdir -p pkg/$(GOOS)_$(GOARCH) + @mkdir -p bin @go install -ldflags '$(GOLDFLAGS)' - @cp $(GOPATH)/bin/packer bin + @cp $(GOPATH)/bin/packer bin/packer @cp $(GOPATH)/bin/packer pkg/$(GOOS)_$(GOARCH) fmt: ## Format Go code