File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -8,31 +8,43 @@ GOBIN = ./build/bin
8
8
GO ?= latest
9
9
GORUN = go run
10
10
11
+ # ? geth: Build geth
11
12
geth :
12
13
$(GORUN ) build/ci.go install ./cmd/geth
13
14
@echo " Done building."
14
15
@echo " Run \" $( GOBIN) /geth\" to launch geth."
15
16
17
+ # ? all: Build all packages and executables
16
18
all :
17
19
$(GORUN ) build/ci.go install
18
20
21
+ # ? test: Run the tests
19
22
test : all
20
23
$(GORUN ) build/ci.go test
21
24
25
+ # ? lint: Run certain pre-selected linters
22
26
lint : # # Run linters.
23
27
$(GORUN ) build/ci.go lint
24
28
29
+ # ? clean: Clean go cache, built executables, and the auto generated folder
25
30
clean :
26
31
go clean -cache
27
32
rm -fr build/_workspace/pkg/ $(GOBIN ) /*
28
33
29
34
# The devtools target installs tools required for 'go generate'.
30
35
# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
31
36
37
+ # ? devtools: Install recommended developer tools
32
38
devtools :
33
39
env GOBIN= go install golang.org/x/tools/cmd/stringer@latest
34
40
env GOBIN= go install github.com/fjl/gencodec@latest
35
41
env GOBIN= go install github.com/golang/protobuf/protoc-gen-go@latest
36
42
env GOBIN= go install ./cmd/abigen
37
43
@type " solc" 2> /dev/null || echo ' Please install solc'
38
44
@type " protoc" 2> /dev/null || echo ' Please install protoc'
45
+
46
+ # ? help: Get more info on make commands.
47
+ help : Makefile
48
+ @echo " Choose a command run in go-ethereum:"
49
+ @sed -n ' s/^#?//p' $< | column -t -s ' :' | sort | sed -e ' s/^/ /'
50
+ .PHONY : help
You can’t perform that action at this time.
0 commit comments