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
1920bootnode :
20- build/env.sh go run build/ci.go install ./cmd/bootnode
21+ $( GORUN ) build/ci.go install ./cmd/bootnode
2122 @echo " Done building."
2223 @echo " Run \" $( GOBIN) /bootnode\" to launch bootnode."
2324
24-
2525all :
26- build/env.sh go run build/ci.go install
26+ $( GORUN ) build/ci.go install
2727
2828android :
29- build/env.sh go run build/ci.go aar --local
29+ $( GORUN ) build/ci.go aar --local
3030 @echo " Done building."
3131 @echo " Import \" $( GOBIN) /geth.aar\" to use the library."
3232
3333ios :
34- build/env.sh go run build/ci.go xcode --local
34+ $( GORUN ) build/ci.go xcode --local
3535 @echo " Done building."
3636 @echo " Import \" $( GOBIN) /Geth.framework\" to use the library."
3737
3838test : all
39- build/env.sh go run build/ci.go test
39+ $( GORUN ) build/ci.go test
4040
4141lint : # # Run linters.
42- build/env.sh go run build/ci.go lint
42+ $( GORUN ) build/ci.go lint
4343
4444clean :
45- go clean -cache
45+ env GO111MODULE=on go clean -cache
4646 rm -fr build/_workspace/pkg/ $(GOBIN ) /*
4747
4848# The devtools target installs tools required for 'go generate'.
@@ -69,12 +69,12 @@ geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 get
6969 @ls -ld $(GOBIN ) /geth-linux-*
7070
7171geth-linux-386 :
72- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/386 -v ./cmd/geth
72+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/386 -v ./cmd/geth
7373 @echo " Linux 386 cross compilation done:"
7474 @ls -ld $(GOBIN ) /geth-linux-* | grep 386
7575
7676geth-linux-amd64 :
77- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/amd64 -v ./cmd/geth
77+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/amd64 -v ./cmd/geth
7878 @echo " Linux amd64 cross compilation done:"
7979 @ls -ld $(GOBIN ) /geth-linux-* | grep amd64
8080
@@ -83,42 +83,42 @@ geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-ar
8383 @ls -ld $(GOBIN ) /geth-linux-* | grep arm
8484
8585geth-linux-arm-5 :
86- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-5 -v ./cmd/geth
86+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-5 -v ./cmd/geth
8787 @echo " Linux ARMv5 cross compilation done:"
8888 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-5
8989
9090geth-linux-arm-6 :
91- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-6 -v ./cmd/geth
91+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-6 -v ./cmd/geth
9292 @echo " Linux ARMv6 cross compilation done:"
9393 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-6
9494
9595geth-linux-arm-7 :
96- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-7 -v ./cmd/geth
96+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-7 -v ./cmd/geth
9797 @echo " Linux ARMv7 cross compilation done:"
9898 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-7
9999
100100geth-linux-arm64 :
101- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm64 -v ./cmd/geth
101+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/arm64 -v ./cmd/geth
102102 @echo " Linux ARM64 cross compilation done:"
103103 @ls -ld $(GOBIN ) /geth-linux-* | grep arm64
104104
105105geth-linux-mips :
106- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips --ldflags ' -extldflags "-static"' -v ./cmd/geth
106+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mips --ldflags ' -extldflags "-static"' -v ./cmd/geth
107107 @echo " Linux MIPS cross compilation done:"
108108 @ls -ld $(GOBIN ) /geth-linux-* | grep mips
109109
110110geth-linux-mipsle :
111- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mipsle --ldflags ' -extldflags "-static"' -v ./cmd/geth
111+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mipsle --ldflags ' -extldflags "-static"' -v ./cmd/geth
112112 @echo " Linux MIPSle cross compilation done:"
113113 @ls -ld $(GOBIN ) /geth-linux-* | grep mipsle
114114
115115geth-linux-mips64 :
116- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64 --ldflags ' -extldflags "-static"' -v ./cmd/geth
116+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64 --ldflags ' -extldflags "-static"' -v ./cmd/geth
117117 @echo " Linux MIPS64 cross compilation done:"
118118 @ls -ld $(GOBIN ) /geth-linux-* | grep mips64
119119
120120geth-linux-mips64le :
121- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64le --ldflags ' -extldflags "-static"' -v ./cmd/geth
121+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64le --ldflags ' -extldflags "-static"' -v ./cmd/geth
122122 @echo " Linux MIPS64le cross compilation done:"
123123 @ls -ld $(GOBIN ) /geth-linux-* | grep mips64le
124124
@@ -127,12 +127,12 @@ geth-darwin: geth-darwin-386 geth-darwin-amd64
127127 @ls -ld $(GOBIN ) /geth-darwin-*
128128
129129geth-darwin-386 :
130- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/386 -v ./cmd/geth
130+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=darwin/386 -v ./cmd/geth
131131 @echo " Darwin 386 cross compilation done:"
132132 @ls -ld $(GOBIN ) /geth-darwin-* | grep 386
133133
134134geth-darwin-amd64 :
135- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/amd64 -v ./cmd/geth
135+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=darwin/amd64 -v ./cmd/geth
136136 @echo " Darwin amd64 cross compilation done:"
137137 @ls -ld $(GOBIN ) /geth-darwin-* | grep amd64
138138
@@ -141,11 +141,11 @@ geth-windows: geth-windows-386 geth-windows-amd64
141141 @ls -ld $(GOBIN ) /geth-windows-*
142142
143143geth-windows-386 :
144- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=windows/386 -v ./cmd/geth
144+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=windows/386 -v ./cmd/geth
145145 @echo " Windows 386 cross compilation done:"
146146 @ls -ld $(GOBIN ) /geth-windows-* | grep 386
147147
148148geth-windows-amd64 :
149- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=windows/amd64 -v ./cmd/geth
149+ $( GORUN ) build/ci.go xgo -- --go=$(GO ) --targets=windows/amd64 -v ./cmd/geth
150150 @echo " Windows amd64 cross compilation done:"
151151 @ls -ld $(GOBIN ) /geth-windows-* | grep amd64
0 commit comments