add get/build targets to Makefile

master
Steven Normore 2014-04-08 12:34:26 +00:00
parent 3f7dbffa2e
commit 0781aa9637
1 changed files with 8 additions and 0 deletions

View File

@ -26,7 +26,15 @@ errcheck:
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
@go get github.com/stretchr/testify/assert
@echo "=== TESTS ==="
@go test -v -cover -test.run=$(TEST)
@echo ""