2f84d8ee2b
Included commands: - deps: install glide and dependencies - install: install lnd - fmt: run `go fmt` excluding vendor - test: run `go test` as per documentation
21 lines
320 B
Makefile
21 lines
320 B
Makefile
.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/')
|