aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-04-08 12:13:59 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-04-08 12:13:59 -0600
commitfef1aad638b5ef512845abd8b910d620027091a6 (patch)
tree2a4e868cfc2f803ca8618ef8373a8a8dca8bc17a
parentMerge pull request #120 from snormore/readme_typo (diff)
parentadd get/build targets to Makefile (diff)
downloaddedo-fef1aad638b5ef512845abd8b910d620027091a6.tar.gz
dedo-fef1aad638b5ef512845abd8b910d620027091a6.tar.xz
Merge pull request #121 from snormore/makefile_env
Add get/build targets 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 ""