github.com/core-coin/go-core/v2@v2.1.9/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: gocore android ios gocore-cross cvm all test clean 6 .PHONY: gocore-linux gocore-linux-386 gocore-linux-amd64 gocore-linux-mips64 gocore-linux-mips64le 7 .PHONY: gocore-linux-arm gocore-linux-arm-5 gocore-linux-arm-6 gocore-linux-arm-7 gocore-linux-arm64 8 .PHONY: gocore-darwin gocore-darwin-386 gocore-darwin-amd64 9 .PHONY: gocore-windows gocore-windows-386 gocore-windows-amd64 10 11 GOBIN = ./build/bin 12 GO ?= latest 13 GORUN = env GO111MODULE=on go run 14 15 gocore: 16 $(GORUN) build/ci.go install ./cmd/gocore 17 @echo "Done building." 18 @echo "Run \"$(GOBIN)/gocore\" to launch gocore." 19 20 all: 21 $(GORUN) build/ci.go install 22 23 android: 24 $(GORUN) build/ci.go aar --local 25 @echo "Done building." 26 @echo "Import \"$(GOBIN)/gocore.aar\" to use the library." 27 28 ios: 29 $(GORUN) build/ci.go xcode --local 30 @echo "Done building." 31 @echo "Import \"$(GOBIN)/Gocore.framework\" to use the library." 32 33 test: all 34 $(GORUN) build/ci.go test 35 36 lint: ## Run linters. 37 $(GORUN) build/ci.go lint 38 39 clean: 40 env GO111MODULE=on go clean -cache 41 rm -fr build/_workspace/pkg/ $(GOBIN)/* 42 43 # The devtools target installs tools required for 'go generate'. 44 # You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'. 45 46 devtools: 47 env GOBIN= go get -u golang.org/x/tools/cmd/stringer 48 env GOBIN= go get -u github.com/kevinburke/go-bindata/go-bindata 49 env GOBIN= go get -u github.com/fjl/gencodec 50 env GOBIN= go get -u github.com/golang/protobuf/protoc-gen-go 51 env GOBIN= go install ./cmd/abigen 52 @type "npm" 2> /dev/null || echo 'Please install node.js and npm' 53 @type "ylem" 2> /dev/null || echo 'Please install ylem' 54 @type "protoc" 2> /dev/null || echo 'Please install protoc'