Merge pull request #5082 from nak3/makefile-copy-binary

Copy binary under the bin directory
This commit is contained in:
Matthew Hooker 2017-10-13 14:40:15 -07:00 committed by GitHub
commit 7349e4fbab
1 changed files with 2 additions and 1 deletions

View File

@ -51,8 +51,9 @@ dev: deps ## Build and install a development build
exit 1; \ exit 1; \
fi fi
@mkdir -p pkg/$(GOOS)_$(GOARCH) @mkdir -p pkg/$(GOOS)_$(GOARCH)
@mkdir -p bin
@go install -ldflags '$(GOLDFLAGS)' @go install -ldflags '$(GOLDFLAGS)'
@cp $(GOPATH)/bin/packer bin @cp $(GOPATH)/bin/packer bin/packer
@cp $(GOPATH)/bin/packer pkg/$(GOOS)_$(GOARCH) @cp $(GOPATH)/bin/packer pkg/$(GOOS)_$(GOARCH)
fmt: ## Format Go code fmt: ## Format Go code