From b49785449726c47ce5efd439ce7440b53a2994f8 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Fri, 6 Mar 2020 10:47:10 -0300 Subject: [PATCH] Check go exists in $PATH (#5216) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index d05a36861..0961b4bb1 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,10 @@ # Add the following 'help' target to your Makefile # And add help text after each target name starting with '\#\#' +ifeq ($(shell which go >/dev/null 2>&1; echo $$?), 1) + $(error Can't find 'go' in PATH, please fix and retry. See http://golang.org/doc/install for installation instructions.) +endif + .DEFAULT_GOAL:=help .EXPORT_ALL_VARIABLES: