Fix `make dev` when the `bin/` directory doesn't exist.

Without this patch you end up with a nifty consul build named `bin`,
not `bin/consul`.
This commit is contained in:
Sean Chittenden 2017-04-28 16:40:50 -07:00
parent 5b2afbb2d1
commit 047576148e
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ bin: tools
# dev creates binaries for testing locally - these are put into ./bin and $GOPATH
dev:
mkdir -p pkg/$(GOOS)_$(GOARCH)
mkdir -p pkg/$(GOOS)_$(GOARCH) bin/
go install -ldflags '$(GOLDFLAGS)' -tags '$(GOTAGS)'
cp $(GOPATH)/bin/consul bin
cp $(GOPATH)/bin/consul bin/
cp $(GOPATH)/bin/consul pkg/$(GOOS)_$(GOARCH)
# dist builds binaries for all platforms and packages them for distribution