From 047576148efeb9516c907f2bfeb19dfebfaebc8d Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Fri, 28 Apr 2017 16:40:50 -0700 Subject: [PATCH] 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`. --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 55faa4a6ef..126ea2f148 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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