Makefile: add test target
This commit is contained in:
parent
72d8878084
commit
c6b983e449
11
Makefile
11
Makefile
@ -1,11 +1,8 @@
|
|||||||
# This Makefile is meant to be used by people that do not usually work
|
# 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
|
# with Go source code. If you know what GOPATH is then you probably
|
||||||
# don't need to bother with make.
|
# 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
|
GOBIN = build/bin
|
||||||
|
|
||||||
geth:
|
geth:
|
||||||
@ -18,5 +15,11 @@ mist:
|
|||||||
@echo "Done building."
|
@echo "Done building."
|
||||||
@echo "Run \"$(GOBIN)/mist --asset_path=cmd/mist/assets\" to launch mist."
|
@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:
|
clean:
|
||||||
rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN)/*
|
rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN)/*
|
||||||
|
Loading…
Reference in New Issue
Block a user