mirror of https://github.com/etcd-io/bbolt.git
add get/build targets to Makefile
parent
3f7dbffa2e
commit
0781aa9637
8
Makefile
8
Makefile
|
@ -26,7 +26,15 @@ errcheck:
|
||||||
fmt:
|
fmt:
|
||||||
@go fmt ./...
|
@go fmt ./...
|
||||||
|
|
||||||
|
get:
|
||||||
|
@go get -d ./...
|
||||||
|
|
||||||
|
build: get
|
||||||
|
@mkdir -p bin
|
||||||
|
@go build -a -o bin/bolt-`git rev-parse --short HEAD` ./cmd/bolt
|
||||||
|
|
||||||
test: fmt errcheck
|
test: fmt errcheck
|
||||||
|
@go get github.com/stretchr/testify/assert
|
||||||
@echo "=== TESTS ==="
|
@echo "=== TESTS ==="
|
||||||
@go test -v -cover -test.run=$(TEST)
|
@go test -v -cover -test.run=$(TEST)
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
Loading…
Reference in New Issue