github.com/theQRL/go-zond@v0.1.1/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: gzond android ios evm all test clean
     6  
     7  GOBIN = ./build/bin
     8  GO ?= latest
     9  GORUN = env GO111MODULE=on go run
    10  
    11  gzond:
    12  	$(GORUN) build/ci.go install ./cmd/gzond
    13  	@echo "Done building."
    14  	@echo "Run \"$(GOBIN)/gzond\" to launch gzond."
    15  
    16  all:
    17  	$(GORUN) build/ci.go install
    18  
    19  test: all
    20  	$(GORUN) build/ci.go test
    21  
    22  lint: ## Run linters.
    23  	$(GORUN) build/ci.go lint
    24  
    25  clean:
    26  	env GO111MODULE=on go clean -cache
    27  	rm -fr build/_workspace/pkg/ $(GOBIN)/*
    28  
    29  # The devtools target installs tools required for 'go generate'.
    30  # You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
    31  
    32  devtools:
    33  	env GOBIN= go install golang.org/x/tools/cmd/stringer@latest
    34  	env GOBIN= go install github.com/fjl/gencodec@latest
    35  	env GOBIN= go install github.com/golang/protobuf/protoc-gen-go@latest
    36  	env GOBIN= go install ./cmd/abigen
    37  	@type "solc" 2> /dev/null || echo 'Please install solc'
    38  	@type "protoc" 2> /dev/null || echo 'Please install protoc'