forked from thecodeteam/libstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglide.mk
More file actions
26 lines (22 loc) · 851 Bytes
/
Copy pathglide.mk
File metadata and controls
26 lines (22 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
################################################################################
## DEPENDENCIES ##
################################################################################
GLIDE := $(GOPATH)/bin/glide
GLIDE_VER := 0.11.1
GLIDE_TGZ := glide-v$(GLIDE_VER)-$(GOHOSTOS)-$(GOHOSTARCH).tar.gz
GLIDE_URL := https://github.com/Masterminds/glide/releases/download/v$(GLIDE_VER)/$(GLIDE_TGZ)
GLIDE_LOCK := glide.lock
GLIDE_YAML := glide.yaml
VENDOR := vendor
$(GLIDE):
@curl -SLO $(GLIDE_URL) && \
tar xzf $(GLIDE_TGZ) && \
rm -f $(GLIDE_TGZ) && \
mkdir -p $(GOPATH)/bin && \
mv $(GOHOSTOS)-$(GOHOSTARCH)/glide $(GOPATH)/bin && \
rm -fr $(GOHOSTOS)-$(GOHOSTARCH)
glide: $(GLIDE)
$(VENDOR): $(GLIDE_LOCK)
$(GLIDE) install
$(GLIDE_LOCK): $(GLIDE_YAML) | $(GLIDE)
$(GLIDE) up