-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 754 Bytes
/
Makefile
File metadata and controls
56 lines (43 loc) · 754 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
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
.PHONY: \
all \
deps \
updatedeps \
testdeps \
updatetestdeps \
build \
lint \
vet \
errcheck \
pretest \
test \
cov \
clean
all: test
deps:
go get -d -v ./...
updatedeps:
go get -d -v -u -f ./...
testdeps:
go get -d -v -t ./...
updatetestdeps:
go get -d -v -t -u -f ./...
build: deps
go build ./...
lint: testdeps
go get -v github.com/golang/lint/golint
golint ./.
vet: testdeps
go get -v golang.org/x/tools/cmd/vet
go vet ./...
errcheck: testdeps
go get -v github.com/kisielk/errcheck
errcheck ./...
pretest: lint vet errcheck
test: testdeps pretest
go test -test.v ./...
cov: testdeps
go get -v github.com/axw/gocov/gocov
go get golang.org/x/tools/cmd/cover
gocov test | gocov report
clean:
go clean -i ./...