forked from dinedal/textql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (36 loc) · 1.01 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: all test clean man glide fast release install
GO15VENDOREXPERIMENT=1
all: textql
textql: deps test
go build -ldflags "-X main.VERSION=`cat VERSION`" -o ./build/textql ./textql/main.go
fast:
go build -i -ldflags "-X main.VERSION=`cat VERSION`-dev" -o ./build/textql ./textql/main.go
deps: glide
./glide install
glide:
ifeq ($(shell uname),Darwin)
curl -L https://github.com/Masterminds/glide/releases/download/0.5.0/glide-darwin-amd64.zip -o glide.zip
unzip glide.zip
mv ./darwin-amd64/glide ./glide
rm -fr ./darwin-amd64
rm ./glide.zip
else
curl -L https://github.com/Masterminds/glide/releases/download/0.5.0/glide-linux-386.zip -o glide.zip
unzip glide.zip
mv ./linux-386/glide ./glide
rm -fr ./linux-386
rm ./glide.zip
endif
test:
go test ./inputs/
go test ./storage/
clean:
rm ./glide
rm -fr ./build
release: textql
git tag -a `cat VERSION`
git push origin `cat VERSION`
install: deps test
go install -ldflags "-X main.VERSION=`cat VERSION`" ./textql/textql.go
man:
ronn man/textql.1.ronn