github.com/bcnmy/go-ethereum@v1.10.27/Makefile (about)

     1  # This Makefile is meant to be used by people that do not usually work
     2  # with Go source code. If you know what GOPATH is then you probably
     3  # don't need to bother with make.
     4  
     5  .PHONY: geth android ios evm all test clean
     6  
     7  GOBIN = ./build/bin
     8  GO ?= latest
     9  GORUN = env GO111MODULE=on go run
    10  
    11  geth:
    12  	$(GORUN) build/ci.go install ./cmd/geth
    13  	@echo "Done building."
    14  	@echo "Run \"$(GOBIN)/geth\" to launch geth."
    15  
    16  all:
    17  	$(GORUN) build/ci.go install
    18  
    19  android:
    20  	$(GORUN) build/ci.go aar --local
    21  	@echo "Done building."
    22  	@echo "Import \"$(GOBIN)/geth.aar\" to use the library."
    23  	@echo "Import \"$(GOBIN)/geth-sources.jar\" to add javadocs"
    24  	@echo "For more info see https://stackoverflow.com/questions/20994336/android-studio-how-to-attach-javadoc"
    25  
    26  ios:
    27  	$(GORUN) build/ci.go xcode --local
    28  	@echo "Done building."
    29  	@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
    30  
    31  test: all
    32  	$(GORUN) build/ci.go test
    33  
    34  lint: ## Run linters.
    35  	$(GORUN) build/ci.go lint
    36  
    37  clean:
    38  	env GO111MODULE=on go clean -cache
    39  	rm -fr build/_workspace/pkg/ $(GOBIN)/*
    40  
    41  # The devtools target installs tools required for 'go generate'.
    42  # You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
    43  
    44  devtools:
    45  	env GOBIN= go install golang.org/x/tools/cmd/stringer@latest
    46  	env GOBIN= go install github.com/fjl/gencodec@latest
    47  	env GOBIN= go install github.com/golang/protobuf/protoc-gen-go@latest
    48  	env GOBIN= go install ./cmd/abigen
    49  	@type "solc" 2> /dev/null || echo 'Please install solc'
    50  	@type "protoc" 2> /dev/null || echo 'Please install protoc'