diff --git a/Makefile b/Makefile index d6435796..8316528d 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ ifeq "$(CIRCLECI)" "true" BUILDINFO= else BUILDINFO=-ldflags "-X main.stratuxVersion=`git describe --tags --abbrev=0` -X main.stratuxBuild=`git log -n 1 --pretty=%H`" -$(if $(GOROOT),,$(error GOROOT is not set!)) +$(ifeq (, $(shell which go)),,$(error Go command not found!)) endif all: