X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-cli.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=2d2586e23d12b54ece5a8029bf6ef3101d7667e7;hp=7c26883682a3da471bed85aa3d05c6d2885c4e19;hb=d65f2c73bfe6d302d5609e949e64254cf2713a1e;hpb=8004920fdc8a55b27c4175293213113423cbb9da diff --git a/Makefile b/Makefile index 7c26883..2d2586e 100644 --- a/Makefile +++ b/Makefile @@ -63,8 +63,9 @@ export PATH := $(PATH):$(LOCAL_TOOLSDIR) GOVERSION := $(shell go version |grep -o '[0-9\.]*'|head -n 1) GOVERMAJ := $(shell echo $(GOVERSION) |cut -f1 -d.) GOVERMIN := $(shell echo $(GOVERSION) |cut -f2 -d.) -CHECKGOVER := $(shell [ $(GOVERMAJ) -gt 1 -o \( $(GOVERMAJ) -eq 1 -a $(GOVERMIN) -ge 8 \) ] && echo true) -CHECKERRMSG := "ERROR: Go version 1.8.1 or higher is requested (current detected version: $(GOVERSION))." +CHECKGOVER := $(shell [ $(GOVERMAJ) -gt 1 -o \( $(GOVERMAJ) -eq 1 -a $(GOVERMIN) -ge 9 \) ] && echo true) +CHECKERRMSG := "ERROR: Go version 1.9.0 or higher is requested (current detected version: $(GOVERSION)). \n\ +\t--> It may be necessary to clear glide cache with following command 'tools/linux/glide cc'" VERBOSE_1 := -v @@ -169,7 +170,7 @@ tools/glide: .PHONY: checkgover: - @test "$(CHECKGOVER)" = "true" || { echo $(CHECKERRMSG); exit 1; } + @test "$(CHECKGOVER)" = "true" || { echo -e $(CHECKERRMSG); exit 1; } .PHONY: help