From a43110e36326a60466080b458ca82172dbfc81ef Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 16 Aug 2024 17:11:08 +0300 Subject: [PATCH] [#77] Makefile: Mark protogen as .PHONY Signed-off-by: Evgenii Stratonikov --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7ed69545..271036af 100755 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ PROTOBUF_DIR ?= $(abspath $(BIN))/protobuf PROTOC_DIR ?= $(PROTOBUF_DIR)/protoc-v$(PROTOC_VERSION) PROTOC_GEN_GO_DIR ?= $(PROTOBUF_DIR)/protoc-gen-go-$(PROTOC_GEN_GO_VERSION) -.PHONY: dep fmts fumpt imports protoc test lint version help +.PHONY: dep fmts fumpt imports protoc test lint version help $(BIN)/protogen protoc-test # Pull go dependencies dep: @@ -72,12 +72,12 @@ protoc: --go-grpc_out=. --go-grpc_opt=paths=source_relative $$f; \ done -protogen: +$(BIN)/protogen: @go build -v -trimpath \ -o $(BIN)/protogen \ ./util/protogen -protoc-test: protoc protogen +protoc-test: protoc $(BIN)/protogen @$(PROTOC_DIR)/bin/protoc \ --plugin=protoc-gen-go-frostfs=$(abspath $(BIN)/protogen) \ --go-frostfs_opt=Mutil/proto/test/test.proto=git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto/test/custom \