diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 16:30:36 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 16:30:36 +0200 |
commit | 9833746bd2e8d6d046fdaf4149ec6dce7584f696 (patch) | |
tree | b71e867eeb965da71a075faf6b8af096295a70d4 | |
parent | 03ea9e0e7107d59f207b3842f9fc3f74d036ac91 (diff) |
Fix glide install detection
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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: |