Check go exists in $PATH (#5216)
This commit is contained in:
parent
07c37bd4d3
commit
b497854497
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -15,6 +15,10 @@
|
||||||
# Add the following 'help' target to your Makefile
|
# Add the following 'help' target to your Makefile
|
||||||
# And add help text after each target name starting with '\#\#'
|
# 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
|
.DEFAULT_GOAL:=help
|
||||||
|
|
||||||
.EXPORT_ALL_VARIABLES:
|
.EXPORT_ALL_VARIABLES:
|
||||||
|
|
Loading…
Reference in a new issue