github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/tools/Makefile (about)

     1  tools/bin/failpoint-ctl: tools/check/go.mod
     2  	cd tools/check && $(GO) build -mod=mod -o ../bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl
     3  
     4  tools/bin/gocovmerge: tools/check/go.mod
     5  	cd tools/check && $(GO) build -mod=mod -o ../bin/gocovmerge github.com/zhouqiang-cl/gocovmerge
     6  
     7  tools/bin/goveralls: tools/check/go.mod
     8  	cd tools/check && $(GO) build -mod=mod -o ../bin/goveralls github.com/mattn/goveralls
     9  
    10  tools/bin/golangci-lint: tools/check/go.mod
    11  	cd tools/check && $(GO) build -mod=mod -o ../bin/golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint
    12  
    13  tools/bin/mockgen: tools/check/go.mod
    14  	cd tools/check && $(GO) build -mod=mod -o ../bin/mockgen github.com/golang/mock/mockgen
    15  
    16  tools/bin/protoc-gen-go: tools/check/go.mod
    17  	cd tools/check && $(GO) build -mod=mod -o ../bin/protoc-gen-go google.golang.org/protobuf/cmd/protoc-gen-go
    18  
    19  tools/bin/protoc-gen-go-grpc: tools/check/go.mod
    20  	cd tools/check && $(GO) build -mod=mod -o ../bin/protoc-gen-go-grpc google.golang.org/grpc/cmd/protoc-gen-go-grpc
    21  
    22  tools/bin/protoc-gen-gogofaster: tools/check/go.mod
    23  	cd tools/check && $(GO) build -mod=mod -o ../bin/protoc-gen-gogofaster github.com/gogo/protobuf/protoc-gen-gogofaster
    24  
    25  tools/bin/protoc-gen-grpc-gateway: tools/check/go.mod
    26  	cd tools/check && $(GO) build -mod=mod -o ../bin/protoc-gen-grpc-gateway github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
    27  
    28  tools/bin/protoc-gen-grpc-gateway-v2: tools/check/go.mod
    29  	cd tools/check && $(GO) build -mod=mod -o ../bin/protoc-gen-grpc-gateway-v2 github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
    30  
    31  tools/bin/gofumports: tools/check/go.mod
    32  	cd tools/check && $(GO) build -mod=mod -o ../bin/gofumports mvdan.cc/gofumpt
    33  
    34  tools/bin/shfmt: tools/check/go.mod
    35  	cd tools/check && $(GO) build -mod=mod -o ../bin/shfmt mvdan.cc/sh/v3/cmd/shfmt
    36  
    37  tools/bin/oapi-codegen: tools/check/go.mod
    38  	cd tools/check && $(GO) build -mod=mod -o ../bin/oapi-codegen github.com/deepmap/oapi-codegen/cmd/oapi-codegen
    39  
    40  tools/bin/gocov: tools/check/go.mod
    41  	cd tools/check && $(GO) build -mod=mod -o ../bin/gocov  github.com/axw/gocov/gocov
    42  
    43  tools/bin/gocov-xml: tools/check/go.mod
    44  	cd tools/check && $(GO) build -mod=mod -o ../bin/gocov-xml github.com/AlekSi/gocov-xml
    45  
    46  tools/bin/gotestsum: tools/check/go.mod
    47  	cd tools/check && $(GO) build -mod=mod -o ../bin/gotestsum gotest.tools/gotestsum
    48  
    49  tools/bin/errdoc-gen: tools/check/go.mod
    50  	cd tools/check && $(GO) build -mod=mod -o ../bin/errdoc-gen github.com/pingcap/errors/errdoc-gen
    51  
    52  tools/bin/swag: tools/check/go.mod
    53  	cd tools/check && $(GO) build -mod=mod -o ../bin/swag github.com/swaggo/swag/cmd/swag
    54  
    55  tools/bin/msgp: tools/check/go.mod
    56  	cd tools/check && $(GO) build -mod=mod -o ../bin/msgp github.com/tinylib/msgp
    57  
    58  tools/bin/protoc:
    59  	./scripts/download-protoc.sh
    60  
    61  tools/bin/goimports: tools/check/go.mod
    62  	cd tools/check && $(GO) build -mod=mod -o ../bin/goimports golang.org/x/tools/cmd/goimports
    63  
    64  tools/bin/protoc-gen-openapiv2: tools/check/go.mod
    65  	cd tools/check && $(GO) build -mod=mod -o ../bin/protoc-gen-openapiv2 github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
    66  
    67  tools/bin/gci: tools/check/go.mod
    68  	cd tools/check && $(GO) build -mod=mod -o ../bin/gci github.com/daixiang0/gci
    69  
    70  tools/bin/stringer: tools/check/go.mod
    71  	cd tools/check && $(GO) build -mod=mod -o ../bin/stringer golang.org/x/tools/cmd/stringer
    72  
    73  tools/bin/mockery: tools/check/go.mod
    74  	cd tools/check && $(GO) build -mod=mod -o ../bin/mockery github.com/vektra/mockery/v2