frostfs-api/Makefile

20 lines
469 B
Makefile
Raw Normal View History

#!/usr/bin/make -f
SHELL=bash
2020-01-30 11:41:24 +00:00
.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)"; \
2020-01-30 11:41:24 +00:00
protoc \
--doc_opt=.github/markdown.tmpl,$${f}.md \
--proto_path=.:/usr/local/include \
2020-01-30 11:41:24 +00:00
--doc_out=proto-docs/ $${f}/*.proto; \
done
fmt:
@for f in `ls **/*.proto`; do \
echo "⇒ Formatting $$f"; \
clang-format -i $$f; \
done