-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 938 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
FUNCNAME=.
install-extra:
go get -u github.com/golang/lint/golint
go get -u github.com/jstemmer/gotags
go get -u github.com/k0kubun/pp
go get -u github.com/monochromegane/the_platinum_searcher/...
go get -u github.com/motemen/ghq
go get -u github.com/motemen/gore
go get -u github.com/nsf/gocode
go get -u github.com/rogpeppe/godef
go get -u golang.org/x/tools/cmd/...
setup-make2help:
go get -u github.com/Songmu/make2help/cmd/make2help
## setup tools
setup: setup-make2help
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/golang/lint/golint
## install dependency
deps: setup
$(HOME)/go-packages/bin/dep ensure
## run tests - `make test FUNCNAME=PE0034` とする事で `PE0034` を含むテストのみ実行できる
test: deps
go test ./project/euler -run ${FUNCNAME}
## lint
lint: setup
go vet ./project/euler
golint ./project/euler
## show help
help: setup-make2help
@make2help $(MAKEFILE_LIST)