forked from smallnest/go-web-framework-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (28 loc) · 573 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
.PHONY: build doc fmt lint dev test vet setup bench
# PKG_NAME=$(shell basename `pwd`)
PKG_NAME=gowebbenchmark
CURRENT_DIR=$(shell pwd)
GOPATH := ${CURRENT_DIR}
export GOPATH
setup:
go get -t -v ./...
build:
go build -v -o ./$(PKG_NAME)
doc:
godoc -http=:6060
fmt:
go fmt ./...
# https://github.com/golang/lint
# go get github.com/golang/lint/golint
lint:
golint ./...
dev:
DEBUG=* go get && go install && gin -p 8911 -i
test:
go test ./...
# Runs benchmarks
bench:
go test ./... -bench=.
# https://godoc.org/golang.org/x/tools/cmd/vet
vet:
go vet ./...