aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-05-25 20:07:57 +0800
committerFelix Lange <fjl@twurst.com>2016-06-22 19:42:39 +0800
commit6c33ba14a4db99409657e6a68a7c629e09ceee3f (patch)
tree7b73dadb69a0e626e6c2c922da2ac17bba8e94d4 /Makefile
parenta38be3eb488a349693a9c9905ab015278281f8db (diff)
downloaddexon-6c33ba14a4db99409657e6a68a7c629e09ceee3f.tar
dexon-6c33ba14a4db99409657e6a68a7c629e09ceee3f.tar.gz
dexon-6c33ba14a4db99409657e6a68a7c629e09ceee3f.tar.bz2
dexon-6c33ba14a4db99409657e6a68a7c629e09ceee3f.tar.lz
dexon-6c33ba14a4db99409657e6a68a7c629e09ceee3f.tar.xz
dexon-6c33ba14a4db99409657e6a68a7c629e09ceee3f.tar.zst
dexon-6c33ba14a4db99409657e6a68a7c629e09ceee3f.zip
build: add ci.go, use it everywhere
The new build script, ci.go, replaces some of the older shell scripts. ci.go can compile go-ethereum, run the tests, create release archives and debian source packages.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 21 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index c2fb9bb35..148cb5758 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
# with Go source code. If you know what GOPATH is then you probably
# don't need to bother with make.
-.PHONY: geth geth-cross evm all test travis-test-with-coverage xgo clean
+.PHONY: geth geth-cross evm all test xgo clean
.PHONY: geth-linux geth-linux-386 geth-linux-amd64
.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
@@ -13,10 +13,29 @@ GOBIN = build/bin
GO ?= latest
geth:
- build/env.sh go build -i -v $(shell build/flags.sh) -o $(GOBIN)/geth ./cmd/geth
+ build/env.sh go run build/ci.go install ./cmd/geth
@echo "Done building."
@echo "Run \"$(GOBIN)/geth\" to launch geth."
+evm:
+ build/env.sh go run build/ci.go install ./cmd/evm
+ @echo "Done building."
+ @echo "Run \"$(GOBIN)/evm to start the evm."
+
+all:
+ build/env.sh go run build/ci.go install
+
+test: all
+ build/env.sh go run build/ci.go test
+
+clean:
+ rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN)/*
+
+# Cross Compilation Targets (xgo)
+
+xgo:
+ build/env.sh go get github.com/karalabe/xgo
+
geth-cross: geth-linux geth-darwin geth-windows geth-android geth-ios
@echo "Full cross compilation done:"
@ls -ld $(GOBIN)/geth-*
@@ -96,26 +115,3 @@ geth-ios: xgo
build/env.sh $(GOBIN)/xgo --go=$(GO) --dest=$(GOBIN) --targets=ios-7.0/framework -v $(shell build/flags.sh) ./cmd/geth
@echo "iOS framework cross compilation done:"
@ls -ld $(GOBIN)/geth-ios-*
-
-evm:
- build/env.sh $(GOROOT)/bin/go install -v $(shell build/flags.sh) ./cmd/evm
- @echo "Done building."
- @echo "Run \"$(GOBIN)/evm to start the evm."
-
-all:
- for cmd in `ls ./cmd/`; do \
- build/env.sh go build -i -v $(shell build/flags.sh) -o $(GOBIN)/$$cmd ./cmd/$$cmd; \
- done
-
-test: all
- build/env.sh go test ./...
-
-travis-test-with-coverage: all
- build/env.sh go vet ./...
- build/env.sh build/test-global-coverage.sh
-
-xgo:
- build/env.sh go get github.com/karalabe/xgo
-
-clean:
- rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN)/*