X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=Makefile;h=e37158182f970772052bb259cd087bdb3a425bd8;hb=78e365c8ce495fcb556828fdab7a71f8b301c42d;hp=948bad2ddb39d39dd0ba8d96b0fcbd92817caab9;hpb=06adae2e6dbded3c94651a8f4e2d1a949a9c6766;p=src%2Fxds%2Fxds-server.git 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: