diff --git a/Makefile b/Makefile index d7f3578ec..3a68f0ba5 100644 --- a/Makefile +++ b/Makefile @@ -51,8 +51,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