diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 16:26:27 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 16:26:27 +0200 |
commit | 78e365c8ce495fcb556828fdab7a71f8b301c42d (patch) | |
tree | b4e833c74e2ea4cc71ce5791952df76489c20f88 | |
parent | 06adae2e6dbded3c94651a8f4e2d1a949a9c6766 (diff) |
Fix glide install detection
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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: |