From 0bb54fb8b731308e15ae3ffc47f2d675827fdc04 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Tue, 1 Mar 2016 17:10:17 -0700 Subject: [PATCH] fix(Makefile): make bootstrap smarter Now bootstrap will only install deps that it is missing. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index bb052f0df..126856f78 100644 --- a/Makefile +++ b/Makefile @@ -73,12 +73,26 @@ vet: done @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 bootstrap: @echo Installing deps +ifndef HAS_GLIDE + go get github.com/Masterminds/glide +endif +ifndef HAS_GOLINT go get -u github.com/golang/lint/golint +endif +ifndef HAS_GOVET go get -u golang.org/x/tools/cmd/vet +endif +ifndef HAS_GOX go get -u github.com/mitchellh/gox +endif glide install .PHONY: .project