From 78e365c8ce495fcb556828fdab7a71f8b301c42d Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 16 Jun 2017 16:26:27 +0200 Subject: [PATCH] Fix glide install detection --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 948bad2..e371581 100644 --- a/Makefile +++ b/Makefile @@ -159,10 +159,13 @@ package-all: vendor: tools/glide glide.yaml $(LOCAL_TOOLSDIR)/glide install --strip-vendor +.PHONY: tools/glide tools/glide: - @echo "Downloading glide" - mkdir -p $(LOCAL_TOOLSDIR) - curl --silent -L https://glide.sh/get | GOBIN=$(LOCAL_TOOLSDIR) 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: -- 2.16.6