From 01c93fb2e30a908702620703d6d38adb1a72ae69 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 22 Aug 2025 21:17:10 +0200 Subject: [PATCH] build: correctly express how to build .pb.go files We can't do something generic but we don't have to. Let's use a grouped rule. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff92a1c5..c9420a1a 100644 --- a/Makefile +++ b/Makefile @@ -70,8 +70,7 @@ BUF = ./bin/external-tool buf .DELETE_ON_ERROR: -common/pb/rawflow_vtproto.pb.go: | common/pb/rawflow.pb.go -%.pb.go: buf.gen.yaml %.proto ; $(info $(M) compiling protocol buffers $@…) +common/pb/rawflow.pb.go common/pb/rawflow_vtproto.pb.go &: buf.gen.yaml common/pb/rawflow.proto ; $(info $(M) compiling protocol buffers $@…) $Q $(BUF) generate --path $(@:.pb.go=.proto) common/clickhousedb/mocks/mock_driver.go: go.mod ; $(info $(M) generate mocks for ClickHouse driver…)