mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
feat: enhance Makefile to keep protobufs always out of date
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
This commit is contained in:
7
Makefile
7
Makefile
@ -69,6 +69,8 @@ PYI = $(PB:.proto=_pb2.pyi)
|
|||||||
## Set default to `protobufs`, otherwise `format` is called when typing only `make`
|
## Set default to `protobufs`, otherwise `format` is called when typing only `make`
|
||||||
all: protobufs
|
all: protobufs
|
||||||
|
|
||||||
|
.PHONY: protobufs clean-proto
|
||||||
|
|
||||||
protobufs: $(PY)
|
protobufs: $(PY)
|
||||||
|
|
||||||
%_pb2.py: %.proto
|
%_pb2.py: %.proto
|
||||||
@ -77,6 +79,11 @@ protobufs: $(PY)
|
|||||||
clean-proto:
|
clean-proto:
|
||||||
rm -f $(PY) $(PYI)
|
rm -f $(PY) $(PYI)
|
||||||
|
|
||||||
|
# Force protobuf regeneration by making them always out of date
|
||||||
|
$(PY): FORCE
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
# docs commands
|
# docs commands
|
||||||
|
|
||||||
docs: check-docs
|
docs: check-docs
|
||||||
|
|||||||
Reference in New Issue
Block a user