From: Sebastien Douheret Date: Fri, 16 Jun 2017 14:30:36 +0000 (+0200) Subject: Fix glide install detection X-Git-Tag: 0.1.0~22 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=9833746bd2e8d6d046fdaf4149ec6dce7584f696;p=src%2Fxds%2Fxds-agent.git Fix glide install detection --- diff --git a/Makefile b/Makefile index 902a238..90826c7 100644 --- a/Makefile +++ b/Makefile @@ -124,10 +124,13 @@ install: all vendor: tools/glide glide.yaml ./tools/glide install --strip-vendor +.PHONY: tools/glide tools/glide: - @echo "Downloading glide" - mkdir -p tools - curl --silent -L https://glide.sh/get | GOBIN=./tools sh + @test -f $(LOCAL_TOOLSDIR)/glide || { \ + echo "Downloading glide"; \ + mkdir -p $(LOCAL_TOOLSDIR); \ + curl --silent -L https://glide.sh/get | GOBIN=$(LOCAL_TOOLSDIR) sh; \ + } .PHONY: tools/syncthing tools/syncthing: