aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bb9609d58..917e7f4ac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,8 @@
# This Makefile is meant to be used by people that do not usually work
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.
-#
-# Note that there is no way to run the tests or do anything other than
-# building the binaries. This is by design.
-.PHONY: geth mist clean
+.PHONY: geth mist test clean
GOBIN = build/bin
geth:
@@ -18,5 +15,11 @@ mist:
@echo "Done building."
@echo "Run \"$(GOBIN)/mist --asset_path=cmd/mist/assets\" to launch mist."
+all:
+ build/env.sh go install -v $(shell build/ldflags.sh) ./...
+
+test: all
+ build/env.sh go test ./...
+
clean:
rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN)/*