From 787648177f2ef1d6710902804bd10ac9ead5d2ff Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Sun, 10 Aug 2025 11:25:06 +0530 Subject: [PATCH] feat: enhance Makefile to keep protobufs always out of date Signed-off-by: varun-r-mallya --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index d67aa1f2..0d8ca81a 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,8 @@ PYI = $(PB:.proto=_pb2.pyi) ## Set default to `protobufs`, otherwise `format` is called when typing only `make` all: protobufs +.PHONY: protobufs clean-proto + protobufs: $(PY) %_pb2.py: %.proto @@ -77,6 +79,11 @@ protobufs: $(PY) clean-proto: rm -f $(PY) $(PYI) +# Force protobuf regeneration by making them always out of date +$(PY): FORCE + +FORCE: + # docs commands docs: check-docs