aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-08 14:04:21 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-08 14:04:21 -0600
commitac2d4f0336186dfca5e84f279392b874d57407cc (patch)
treee854373dcd19ad1c5675615a546a1abb38fa84d7 /Makefile
parentUpdate cursor benchmark. (diff)
parentMerge pull request #121 from snormore/makefile_env (diff)
downloaddedo-ac2d4f0336186dfca5e84f279392b874d57407cc.tar.gz
dedo-ac2d4f0336186dfca5e84f279392b874d57407cc.tar.xz
Merge branch 'master' of https://github.com/boltdb/bolt
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2d0fd3f..ec11e77 100644
--- a/Makefile
+++ b/Makefile
@@ -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 ""