From aa7f5e113d8d3802b19b0bfbd4648b2beab607a8 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Thu, 5 May 2016 17:16:06 -0600 Subject: [PATCH] fix(Makefile): add bootstrap warnings See #647 --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index a6178479e..1078e6f73 100644 --- a/Makefile +++ b/Makefile @@ -63,8 +63,21 @@ clean: coverage: @scripts/coverage.sh +HAS_GLIDE := $(shell command -v glide;) +HAS_HG := $(shell command -v hg;) +HAS_GIT := $(shell command -v git;) + .PHONY: bootstrap bootstrap: +ifndef HAS_GLIDE + go get -u github.com/Masterminds/glide +endif +ifndef HAS_HG + $(error You must install Mercurial (hg)) +endif +ifndef HAS_GIT + $(error You must install Git) +endif glide install include versioning.mk