From 2f9c3c2e5d8d8ce138f3062c5089d8b495c8ef6b Mon Sep 17 00:00:00 2001 From: Miyurz Date: Wed, 14 Dec 2016 20:50:05 +0530 Subject: [PATCH] If not mercurial, clone with git. dont exit if no mercurial is there --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d5d53f30e..69e8e8959 100644 --- a/Makefile +++ b/Makefile @@ -112,11 +112,12 @@ endif ifndef HAS_GOX go get -u github.com/mitchellh/gox endif + ifndef HAS_HG - $(error You must install Mercurial (hg)) -endif + @echo "Mercurial is not installed! Checking for Git" ifndef HAS_GIT - $(error You must install Git) + $(error You must either install Mercurial or Git) +endif endif glide install --strip-vendor go build -o bin/protoc-gen-go ./vendor/github.com/golang/protobuf/protoc-gen-go