add a basic makefile

Included commands:

- deps: install glide and dependencies
- install: install lnd
- fmt: run `go fmt` excluding vendor
- test: run `go test` as per documentation
This commit is contained in:
Chakib Benziane 2018-01-29 17:11:03 +01:00 committed by Conner Fromknecht
parent 2b00e01c53
commit 2f84d8ee2b
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

20
Makefile Normal file

@ -0,0 +1,20 @@
.PHONY: all glidebin glide deps install fmt test
all: install
glidebin:
go get -u github.com/Masterminds/glide
glide: glidebin
glide install
deps: glide
install: deps
go install . ./cmd/...
fmt:
go fmt ./... $$(go list ./... | grep -v '/vendor/')
test:
go test -v -p 1 $$(go list ./... | grep -v '/vendor/')