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