diff --git a/Makefile b/Makefile index 64e2941669..4cdb9fb60c 100644 --- a/Makefile +++ b/Makefile @@ -126,8 +126,8 @@ install-testing: build mkdir -p "$${PREFIX}/web/vtctld2" cp -R web/vtctld2/app "$${PREFIX}/web/vtctld2" -grpcvtctldclient: go/vt/proto/vtctlservice/vtctlservice.pb.go - make -C go/vt/vtctl/grpcvtctldclient +vtctldclient: go/vt/proto/vtctlservice/vtctlservice.pb.go + make -C go/vt/vtctl/vtctldclient parser: make -C go/vt/sqlparser diff --git a/go/vt/vtctl/grpcvtctldclient/client.go b/go/vt/vtctl/grpcvtctldclient/client.go index 45e19ff88e..e688e998da 100644 --- a/go/vt/vtctl/grpcvtctldclient/client.go +++ b/go/vt/vtctl/grpcvtctldclient/client.go @@ -35,7 +35,7 @@ type gRPCVtctldClient struct { c vtctlservicepb.VtctldClient } -//go:generate -command grpcvtctldclient go run ./codegen +//go:generate -command grpcvtctldclient go run ../vtctldclient/codegen //go:generate grpcvtctldclient -out client_gen.go func gRPCVtctldClientFactory(addr string) (vtctldclient.VtctldClient, error) { diff --git a/go/vt/vtctl/grpcvtctldclient/Makefile b/go/vt/vtctl/vtctldclient/Makefile similarity index 86% rename from go/vt/vtctl/grpcvtctldclient/Makefile rename to go/vt/vtctl/vtctldclient/Makefile index d40d962d70..6306c92b73 100644 --- a/go/vt/vtctl/grpcvtctldclient/Makefile +++ b/go/vt/vtctl/vtctldclient/Makefile @@ -14,6 +14,8 @@ MAKEFLAGS = -s -generate: - go generate ./... - gofmt -w client_gen.go +all: grpcvtctldclient + +grpcvtctldclient: + go generate ../$@/... + gofmt -w ../$@/client_gen.go diff --git a/go/vt/vtctl/grpcvtctldclient/codegen/main.go b/go/vt/vtctl/vtctldclient/codegen/main.go similarity index 100% rename from go/vt/vtctl/grpcvtctldclient/codegen/main.go rename to go/vt/vtctl/vtctldclient/codegen/main.go diff --git a/go/vt/vtctl/grpcvtctldclient/codegen/template.go b/go/vt/vtctl/vtctldclient/codegen/template.go similarity index 100% rename from go/vt/vtctl/grpcvtctldclient/codegen/template.go rename to go/vt/vtctl/vtctldclient/codegen/template.go