Skip to content

Commit

Permalink
Makefile: add test target
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Apr 29, 2015
1 parent 72d8878 commit c6b983e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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)/*

0 comments on commit c6b983e

Please sign in to comment.