github.com/citrino-network/citrino-cli@v0.0.0-20211030184609-316d7bfc332c/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: citrinoc android ios evm all test clean 6 7 GOBIN = ./build/bin 8 GO ?= latest 9 GORUN = env GO111MODULE=on go run 10 11 citrinoc: 12 $(GORUN) build/ci.go install ./cmd/citrinoc 13 @echo "Done building." 14 @echo "Run \"$(GOBIN)/citrinoc\" to launch citrinoc." 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)/citrinoc.aar\" to use the library." 23 @echo "Import \"$(GOBIN)/citrinoc-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)/Citrinoc.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/kevinburke/go-bindata/go-bindata@latest 47 env GOBIN= go install github.com/fjl/gencodec@latest 48 env GOBIN= go install github.com/golang/protobuf/protoc-gen-go@latest 49 env GOBIN= go install ./cmd/abigen 50 @type "solc" 2> /dev/null || echo 'Please install solc' 51 @type "protoc" 2> /dev/null || echo 'Please install protoc'