Check go exists in $PATH (#5216)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-03-06 10:47:10 -03:00 committed by GitHub
parent 07c37bd4d3
commit b497854497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: