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:
parent
2b00e01c53
commit
2f84d8ee2b
20
Makefile
Normal file
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/')
|
Loading…
Reference in New Issue
Block a user