22# with Go source code. If you know what GOPATH is then you probably
33# don't need to bother with make.
44
5- .PHONY : geth android ios geth-cross evm all test clean
5+ .PHONY : geth android ios geth-cross swarm evm all test clean
66.PHONY : geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le
77.PHONY : geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
88.PHONY : geth-darwin geth-darwin-386 geth-darwin-amd64
@@ -12,32 +12,37 @@ GOBIN = $(shell pwd)/build/bin
1212GO ?= latest
1313
1414geth :
15- build/env.sh go run build/ci.go install ./cmd/geth
15+ go run build/ci.go install ./cmd/geth
1616 @echo " Done building."
1717 @echo " Run \" $( GOBIN) /geth\" to launch geth."
1818
19+ swarm :
20+ go run build/ci.go install ./cmd/swarm
21+ @echo " Done building."
22+ @echo " Run \" $( GOBIN) /swarm\" to launch swarm."
23+
1924all :
20- build/env.sh go run build/ci.go install
25+ go run build/ci.go install
2126
2227android :
23- build/env.sh go run build/ci.go aar --local
28+ go run build/ci.go aar --local
2429 @echo " Done building."
2530 @echo " Import \" $( GOBIN) /geth.aar\" to use the library."
2631
2732ios :
28- build/env.sh go run build/ci.go xcode --local
33+ go run build/ci.go xcode --local
2934 @echo " Done building."
3035 @echo " Import \" $( GOBIN) /Geth.framework\" to use the library."
3136
3237test : all
33- build/env.sh go run build/ci.go test
38+ go run build/ci.go test
3439
3540lint : # # Run linters.
36- build/env.sh go run build/ci.go lint
41+ go run build/ci.go lint
3742
3843clean :
3944 ./build/clean_go_build_cache.sh
40- rm -fr build/_workspace/pkg/ $(GOBIN ) /*
45+ rm -fr $(GOBIN ) /*
4146
4247# The devtools target installs tools required for 'go generate'.
4348# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
@@ -63,12 +68,12 @@ geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 get
6368 @ls -ld $(GOBIN ) /geth-linux-*
6469
6570geth-linux-386 :
66- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/386 -v ./cmd/geth
71+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/386 -v ./cmd/geth
6772 @echo " Linux 386 cross compilation done:"
6873 @ls -ld $(GOBIN ) /geth-linux-* | grep 386
6974
7075geth-linux-amd64 :
71- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/amd64 -v ./cmd/geth
76+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/amd64 -v ./cmd/geth
7277 @echo " Linux amd64 cross compilation done:"
7378 @ls -ld $(GOBIN ) /geth-linux-* | grep amd64
7479
@@ -77,42 +82,42 @@ geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-ar
7782 @ls -ld $(GOBIN ) /geth-linux-* | grep arm
7883
7984geth-linux-arm-5 :
80- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-5 -v ./cmd/geth
85+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-5 -v ./cmd/geth
8186 @echo " Linux ARMv5 cross compilation done:"
8287 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-5
8388
8489geth-linux-arm-6 :
85- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-6 -v ./cmd/geth
90+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-6 -v ./cmd/geth
8691 @echo " Linux ARMv6 cross compilation done:"
8792 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-6
8893
8994geth-linux-arm-7 :
90- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-7 -v ./cmd/geth
95+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm-7 -v ./cmd/geth
9196 @echo " Linux ARMv7 cross compilation done:"
9297 @ls -ld $(GOBIN ) /geth-linux-* | grep arm-7
9398
9499geth-linux-arm64 :
95- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm64 -v ./cmd/geth
100+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/arm64 -v ./cmd/geth
96101 @echo " Linux ARM64 cross compilation done:"
97102 @ls -ld $(GOBIN ) /geth-linux-* | grep arm64
98103
99104geth-linux-mips :
100- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips --ldflags ' -extldflags "-static"' -v ./cmd/geth
105+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips --ldflags ' -extldflags "-static"' -v ./cmd/geth
101106 @echo " Linux MIPS cross compilation done:"
102107 @ls -ld $(GOBIN ) /geth-linux-* | grep mips
103108
104109geth-linux-mipsle :
105- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mipsle --ldflags ' -extldflags "-static"' -v ./cmd/geth
110+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mipsle --ldflags ' -extldflags "-static"' -v ./cmd/geth
106111 @echo " Linux MIPSle cross compilation done:"
107112 @ls -ld $(GOBIN ) /geth-linux-* | grep mipsle
108113
109114geth-linux-mips64 :
110- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64 --ldflags ' -extldflags "-static"' -v ./cmd/geth
115+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64 --ldflags ' -extldflags "-static"' -v ./cmd/geth
111116 @echo " Linux MIPS64 cross compilation done:"
112117 @ls -ld $(GOBIN ) /geth-linux-* | grep mips64
113118
114119geth-linux-mips64le :
115- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64le --ldflags ' -extldflags "-static"' -v ./cmd/geth
120+ go run build/ci.go xgo -- --go=$(GO ) --targets=linux/mips64le --ldflags ' -extldflags "-static"' -v ./cmd/geth
116121 @echo " Linux MIPS64le cross compilation done:"
117122 @ls -ld $(GOBIN ) /geth-linux-* | grep mips64le
118123
@@ -121,12 +126,12 @@ geth-darwin: geth-darwin-386 geth-darwin-amd64
121126 @ls -ld $(GOBIN ) /geth-darwin-*
122127
123128geth-darwin-386 :
124- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/386 -v ./cmd/geth
129+ go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/386 -v ./cmd/geth
125130 @echo " Darwin 386 cross compilation done:"
126131 @ls -ld $(GOBIN ) /geth-darwin-* | grep 386
127132
128133geth-darwin-amd64 :
129- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/amd64 -v ./cmd/geth
134+ go run build/ci.go xgo -- --go=$(GO ) --targets=darwin/amd64 -v ./cmd/geth
130135 @echo " Darwin amd64 cross compilation done:"
131136 @ls -ld $(GOBIN ) /geth-darwin-* | grep amd64
132137
@@ -135,11 +140,11 @@ geth-windows: geth-windows-386 geth-windows-amd64
135140 @ls -ld $(GOBIN ) /geth-windows-*
136141
137142geth-windows-386 :
138- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=windows/386 -v ./cmd/geth
143+ go run build/ci.go xgo -- --go=$(GO ) --targets=windows/386 -v ./cmd/geth
139144 @echo " Windows 386 cross compilation done:"
140145 @ls -ld $(GOBIN ) /geth-windows-* | grep 386
141146
142147geth-windows-amd64 :
143- build/env.sh go run build/ci.go xgo -- --go=$(GO ) --targets=windows/amd64 -v ./cmd/geth
148+ go run build/ci.go xgo -- --go=$(GO ) --targets=windows/amd64 -v ./cmd/geth
144149 @echo " Windows amd64 cross compilation done:"
145150 @ls -ld $(GOBIN ) /geth-windows-* | grep amd64
0 commit comments