2020-08-12 16:04:15 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
SHELL=bash
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-08-12 16:04:15 +00:00
|
|
|
.PHONY: doc
|
2020-09-17 19:04:00 +00:00
|
|
|
# Regenerate documentation for proto files:
|
2020-08-12 16:04:15 +00:00
|
|
|
doc:
|
|
|
|
@for f in `find . -type f -name '*.proto' -exec dirname {} \; | sort -u `; do \
|
2020-09-17 19:04:00 +00:00
|
|
|
echo "⇒ Documentation for $$(basename $$f)"; \
|
2020-01-30 11:41:24 +00:00
|
|
|
protoc \
|
|
|
|
--doc_opt=.github/markdown.tmpl,$${f}.md \
|
2020-08-12 16:04:15 +00:00
|
|
|
--proto_path=.:/usr/local/include \
|
2020-01-30 11:41:24 +00:00
|
|
|
--doc_out=proto-docs/ $${f}/*.proto; \
|
|
|
|
done
|
2024-02-28 15:53:04 +00:00
|
|
|
|
|
|
|
fmt:
|
|
|
|
@for f in `ls **/*.proto`; do \
|
|
|
|
echo "⇒ Formatting $$f"; \
|
|
|
|
clang-format -i $$f; \
|
|
|
|
done
|