Watch 54 Star 103

Gitee 极速下载 / hyperledger-fabricGoApache-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:
Clone or download 1.40 KB
Copy Edit Web IDE Raw Blame History
# Copyright IBM Corp All Rights Reserved.
# Copyright London Stock Exchange Group All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
GOTOOLS = counterfeiter ginkgo gocov gocov-xml goimports golint misspell mockery protoc-gen-go swagger
BUILD_DIR ?= build
GOTOOLS_BINDIR ?= $(shell go env GOPATH)/bin
# go tool->path mapping
go.fqp.counterfeiter :=
go.fqp.ginkgo :=
go.fqp.gocov :=
go.fqp.gocov-xml :=
go.fqp.goimports :=
go.fqp.golint :=
go.fqp.misspell :=
go.fqp.mockery :=
go.fqp.protoc-gen-go :=
go.fqp.swagger :=
.PHONY: gotools-install
gotools-install: $(patsubst %,$(GOTOOLS_BINDIR)/%, $(GOTOOLS))
.PHONY: gotools-clean
# Default rule for gotools uses the name->path map for a generic 'go get' style build
$(eval TOOL = ${subst gotool.,,${@}})
@echo "Building ${go.fqp.${TOOL}} -> $(TOOL)"
@cd tools && GO111MODULE=on GOBIN=$(abspath $(GOTOOLS_BINDIR)) go install ${go.fqp.${TOOL}}
$(eval TOOL = ${subst $(GOTOOLS_BINDIR)/,,${@}})
@$(MAKE) -f gotool.$(TOOL)

Comment ( 0 )

Sign in for post a comment