forked from TrueCloudLab/frostfs-api-go
[#77] Makefile: Mark protogen as .PHONY
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
7be31eb847
commit
a43110e363
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -14,7 +14,7 @@ PROTOBUF_DIR ?= $(abspath $(BIN))/protobuf
|
||||||
PROTOC_DIR ?= $(PROTOBUF_DIR)/protoc-v$(PROTOC_VERSION)
|
PROTOC_DIR ?= $(PROTOBUF_DIR)/protoc-v$(PROTOC_VERSION)
|
||||||
PROTOC_GEN_GO_DIR ?= $(PROTOBUF_DIR)/protoc-gen-go-$(PROTOC_GEN_GO_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
|
# Pull go dependencies
|
||||||
dep:
|
dep:
|
||||||
|
@ -72,12 +72,12 @@ protoc:
|
||||||
--go-grpc_out=. --go-grpc_opt=paths=source_relative $$f; \
|
--go-grpc_out=. --go-grpc_opt=paths=source_relative $$f; \
|
||||||
done
|
done
|
||||||
|
|
||||||
protogen:
|
$(BIN)/protogen:
|
||||||
@go build -v -trimpath \
|
@go build -v -trimpath \
|
||||||
-o $(BIN)/protogen \
|
-o $(BIN)/protogen \
|
||||||
./util/protogen
|
./util/protogen
|
||||||
|
|
||||||
protoc-test: protoc protogen
|
protoc-test: protoc $(BIN)/protogen
|
||||||
@$(PROTOC_DIR)/bin/protoc \
|
@$(PROTOC_DIR)/bin/protoc \
|
||||||
--plugin=protoc-gen-go-frostfs=$(abspath $(BIN)/protogen) \
|
--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 \
|
--go-frostfs_opt=Mutil/proto/test/test.proto=git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto/test/custom \
|
||||||
|
|
Loading…
Reference in a new issue