-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
60 lines (46 loc) · 811 Bytes
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: \
all \
deps \
update-deps \
test-deps \
update-test-deps \
build \
install \
lint \
vet \
errcheck \
pretest \
test \
cov \
clean
all: test
deps:
go get -d -v ./...
update-deps:
go get -d -v -u -f ./...
test-deps:
go get -d -v -t ./...
update-test-deps:
go get -d -v -t -u -f ./...
build: deps
go build ./...
install: deps
go install ./...
lint: test-deps
go get -v github.com/golang/lint/golint
golint ./.
vet: test-deps
go get -v golang.org/x/tools/cmd/vet
go vet ./...
errcheck: test-deps
go get -v github.com/kisielk/errcheck
errcheck ./...
pretest: lint vet errcheck
test: test-deps pretest
go test -test.v ./...
cov: test-deps
go get -v github.com/axw/gocov/gocov
go get golang.org/x/tools/cmd/cover
gocov test | gocov report
clean:
go clean -i ./...