forked from 42wim/rl
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 756 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 756 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
27
28
29
all: clean mendix-logfilter
GOPATH = $(CURDIR)/go
clean:
rm -f mendix-logfilter
rm -f glide.tar.gz
rm -f glide
rm -rf go/
rm -rf vendor/
glide.tar.gz:
curl -sL -o glide.tar.gz https://github.com/Masterminds/glide/releases/download/v0.13.1/glide-v0.13.1-linux-amd64.tar.gz
glide: glide.tar.gz
tar --strip=1 -zxvf glide.tar.gz -- linux-amd64/glide
mkdir $(GOPATH) vendor
ln -sf ../vendor $(GOPATH)/src
GOPATH=$(GOPATH) ./glide install
# When you need to bump the packages as listed in glide.yaml
glide-up: glide.tar.gz
tar --strip=1 -zxvf glide.tar.gz -- linux-amd64/glide
mkdir $(GOPATH) vendor
ln -sf ./vendor $(GOPATH)/src
GOPATH=$(GOPATH) ./glide up
mendix-logfilter: glide
GOPATH=$(GOPATH) go build -ldflags="-s -w" -o $@ ./main.go