1010
1111GOBIN = ./build/bin
1212GO ?= latest
13+ GORUN = env GO111MODULE=on go run
1314
1415geth :
15- build/env.sh go run build/ci.go install ./cmd/geth
16+ $( GORUN ) build/ci.go install ./cmd/geth
1617 @echo " Done building."
1718 @echo " Run \" $( GOBIN) /geth\" to launch geth."
1819
1920all :
20- build/env.sh go run build/ci.go install
21+ $( GORUN ) build/ci.go install
2122
2223android :
23- build/env.sh go run build/ci.go aar --local
24+ $( GORUN ) build/ci.go aar --local
2425 @echo " Done building."
2526 @echo " Import \" $( GOBIN) /geth.aar\" to use the library."
2627
2728ios :
28- build/env.sh go run build/ci.go xcode --local
29+ $( GORUN ) build/ci.go xcode --local
2930 @echo " Done building."
3031 @echo " Import \" $( GOBIN) /Geth.framework\" to use the library."
3132
3233test : all
33- build/env.sh go run build/ci.go test
34+ $( GORUN ) build/ci.go test
3435
3536lint : # # Run linters.
36- build/env.sh go run build/ci.go lint
37+ $( GORUN ) build/ci.go lint
3738
3839clean :
39- go clean -cache
40+ env GO111MODULE=on go clean -cache
4041 rm -fr build/_workspace/pkg/ $(GOBIN ) /*
4142
4243# The devtools target installs tools required for 'go generate'.
@@ -63,12 +64,12 @@ geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 get
6364 @ls -ld $(GOBIN ) /geth-linux-*
6465
6566geth-linux-386 :
66- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/386 -v ./cmd/geth
67+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/386 -v ./cmd/geth
6768 @echo " Linux 386 cross compilation done:"
6869 @ls -ld $(GOBIN ) /geth-linux-* | grep 386
6970
7071geth-linux-amd64 :
71- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/amd64 -v ./cmd/geth
72+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/amd64 -v ./cmd/geth
7273 @echo " Linux amd64 cross compilation done:"
7374 @ls -ld $(GOBIN ) /geth-linux-* | grep amd64
7475
@@ -77,42 +78,42 @@ geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-ar
7778 @ls -ld $(GOBIN ) /geth-linux-* | grep arm
7879
7980geth-linux-arm-5 :
80- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-5 -v ./cmd/geth
81+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-5 -v ./cmd/geth
8182 @echo " Linux ARMv5 cross compilation done:"
8283 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-5
8384
8485geth-linux-arm-6 :
85- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-6 -v ./cmd/geth
86+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-6 -v ./cmd/geth
8687 @echo " Linux ARMv6 cross compilation done:"
8788 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-6
8889
8990geth-linux-arm-7 :
90- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-7 -v ./cmd/geth
91+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-7 -v ./cmd/geth
9192 @echo " Linux ARMv7 cross compilation done:"
9293 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-7
9394
9495geth-linux-arm64 :
95- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm64 -v ./cmd/geth
96+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm64 -v ./cmd/geth
9697 @echo " Linux ARM64 cross compilation done:"
9798 @ls -ld $(GOBIN ) /geth-linux-* | grep arm64
9899
99100geth-linux-mips :
100- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips --ldflags ' -extldflags "-static"' -v ./cmd/geth
101+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mips --ldflags ' -extldflags "-static"' -v ./cmd/geth
101102 @echo " Linux MIPS cross compilation done:"
102103 @ls -ld $(GOBIN ) /geth-linux-* | grep mips
103104
104105geth-linux-mipsle :
105- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mipsle --ldflags ' -extldflags "-static"' -v ./cmd/geth
106+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mipsle --ldflags ' -extldflags "-static"' -v ./cmd/geth
106107 @echo " Linux MIPSle cross compilation done:"
107108 @ls -ld $(GOBIN ) /geth-linux-* | grep mipsle
108109
109110geth-linux-mips64 :
110- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64 --ldflags ' -extldflags "-static"' -v ./cmd/geth
111+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64 --ldflags ' -extldflags "-static"' -v ./cmd/geth
111112 @echo " Linux MIPS64 cross compilation done:"
112113 @ls -ld $(GOBIN ) /geth-linux-* | grep mips64
113114
114115geth-linux-mips64le :
115- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64le --ldflags ' -extldflags "-static"' -v ./cmd/geth
116+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64le --ldflags ' -extldflags "-static"' -v ./cmd/geth
116117 @echo " Linux MIPS64le cross compilation done:"
117118 @ls -ld $(GOBIN ) /geth-linux-* | grep mips64le
118119
@@ -121,12 +122,12 @@ geth-darwin: geth-darwin-386 geth-darwin-amd64
121122 @ls -ld $(GOBIN ) /geth-darwin-*
122123
123124geth-darwin-386 :
124- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/386 -v ./cmd/geth
125+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=darwin/386 -v ./cmd/geth
125126 @echo " Darwin 386 cross compilation done:"
126127 @ls -ld $(GOBIN ) /geth-darwin-* | grep 386
127128
128129geth-darwin-amd64 :
129- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/amd64 -v ./cmd/geth
130+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=darwin/amd64 -v ./cmd/geth
130131 @echo " Darwin amd64 cross compilation done:"
131132 @ls -ld $(GOBIN ) /geth-darwin-* | grep amd64
132133
@@ -135,11 +136,11 @@ geth-windows: geth-windows-386 geth-windows-amd64
135136 @ls -ld $(GOBIN ) /geth-windows-*
136137
137138geth-windows-386 :
138- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=windows/386 -v ./cmd/geth
139+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=windows/386 -v ./cmd/geth
139140 @echo " Windows 386 cross compilation done:"
140141 @ls -ld $(GOBIN ) /geth-windows-* | grep 386
141142
142143geth-windows-amd64 :
143- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=windows/amd64 -v ./cmd/geth
144+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=windows/amd64 -v ./cmd/geth
144145 @echo " Windows amd64 cross compilation done:"
145146 @ls -ld $(GOBIN ) /geth-windows-* | grep amd64
0 commit comments