Skip to content

Commit 7876481

Browse files
feat: enhance Makefile to keep protobufs always out of date
Signed-off-by: varun-r-mallya <[email protected]>
1 parent 618aff9 commit 7876481

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ PYI = $(PB:.proto=_pb2.pyi)
6969
## Set default to `protobufs`, otherwise `format` is called when typing only `make`
7070
all: protobufs
7171

72+
.PHONY: protobufs clean-proto
73+
7274
protobufs: $(PY)
7375

7476
%_pb2.py: %.proto
@@ -77,6 +79,11 @@ protobufs: $(PY)
7779
clean-proto:
7880
rm -f $(PY) $(PYI)
7981

82+
# Force protobuf regeneration by making them always out of date
83+
$(PY): FORCE
84+
85+
FORCE:
86+
8087
# docs commands
8188

8289
docs: check-docs

0 commit comments

Comments
 (0)