Commit 0bb54fb8 authored by Matt Butcher's avatar Matt Butcher

fix(Makefile): make bootstrap smarter

Now bootstrap will only install deps that it is missing.
parent 3f2fe87c
...@@ -73,12 +73,26 @@ vet: ...@@ -73,12 +73,26 @@ vet:
done done
@echo ----------------- @echo -----------------
HAS_GLIDE := $(shell command -v glide)
HAS_GOLINT := $(shell command -v golint)
HAS_GOVET := $(shell command -v go tool vet)
HAS_GOX := $(shell command -v gox)
.PHONY: bootstrap .PHONY: bootstrap
bootstrap: bootstrap:
@echo Installing deps @echo Installing deps
ifndef HAS_GLIDE
go get github.com/Masterminds/glide
endif
ifndef HAS_GOLINT
go get -u github.com/golang/lint/golint go get -u github.com/golang/lint/golint
endif
ifndef HAS_GOVET
go get -u golang.org/x/tools/cmd/vet go get -u golang.org/x/tools/cmd/vet
endif
ifndef HAS_GOX
go get -u github.com/mitchellh/gox go get -u github.com/mitchellh/gox
endif
glide install glide install
.PHONY: .project .PHONY: .project
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment