1 Star 0 Fork 0

Zarror/pier-client-ethereum

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 935 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhourong 提交于 2021-08-31 23:30 . feat: add init and start command
SHELL := /bin/bash
CURRENT_PATH = $(shell pwd)
DISTRO = $(shell uname)
CURRENT_TAG =$(shell git describe --abbrev=0 --tags)
GO = GO111MODULE=on go
ifeq (docker,$(firstword $(MAKECMDGOALS)))
DOCKER_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
$(eval $(DOCKER_ARGS):;@:)
endif
help: Makefile
@echo "Choose a command run:"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
## make eth: build ethereum client plugin
eth:
@packr
mkdir -p build
$(GO) build -o build/eth-client ./*.go
docker:
mkdir -p build
cd build && rm -rf pier && git clone https://github.com/meshplus/pier.git && cd pier && git checkout $(DOCKER_ARGS)
cd ${CURRENT_PATH}
docker build -t meshplus/pier-ethereum .
release-binary:
mkdir -p build
$(GO) build -o build/eth-client-${CURRENT_TAG}-${DISTRO} ./*.go
## make linter: Run golanci-lint
linter:
golangci-lint run -E goimports --skip-dirs-use-default -D staticcheck
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zarror-wang/pier-client-ethereum.git
[email protected]:zarror-wang/pier-client-ethereum.git
zarror-wang
pier-client-ethereum
pier-client-ethereum
master

搜索帮助