forked from TrueCloudLab/frostfs-api
Aleksey Savchuk
54812ba857
The `buf` CLI is no longer available, so the related lint target has been removed from Makefile. Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
19 lines
469 B
Makefile
Executable file
19 lines
469 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
SHELL=bash
|
|
|
|
.PHONY: doc
|
|
# Regenerate documentation for proto files:
|
|
doc:
|
|
@for f in `find . -type f -name '*.proto' -exec dirname {} \; | sort -u `; do \
|
|
echo "⇒ Documentation for $$(basename $$f)"; \
|
|
protoc \
|
|
--doc_opt=.github/markdown.tmpl,$${f}.md \
|
|
--proto_path=.:/usr/local/include \
|
|
--doc_out=proto-docs/ $${f}/*.proto; \
|
|
done
|
|
|
|
fmt:
|
|
@for f in `ls **/*.proto`; do \
|
|
echo "⇒ Formatting $$f"; \
|
|
clang-format -i $$f; \
|
|
done
|