aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSteven Normore <snormore@gmail.com>2014-04-08 12:34:26 +0000
committerSteven Normore <snormore@gmail.com>2014-04-08 18:03:20 +0000
commit0781aa9637356175a4249f1e62a14daa21c9666a (patch)
tree41f01c75c1f78e42d0b75fabce3973622c526f82 /Makefile
parentMerge pull request #119 from benbjohnson/tx-rename (diff)
downloaddedo-0781aa9637356175a4249f1e62a14daa21c9666a.tar.gz
dedo-0781aa9637356175a4249f1e62a14daa21c9666a.tar.xz
add get/build targets to Makefile
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 ""