frostfs-api/Makefile

22 lines
528 B
Makefile
Raw Normal View History

#!/usr/bin/make -f
SHELL=bash
2020-01-30 11:41:24 +00:00
# BRanch to match for BRaking changes
BRBR?=master
2020-01-30 11:41:24 +00:00
.PHONY: lint
lint:
buf check lint
buf check breaking --against-input '.git#branch=$(BRBR)'
2020-01-30 11:41:24 +00:00
.PHONY: doc
2020-01-30 11:41:24 +00:00
# Regenerate documentation for protot files:
doc:
@for f in `find . -type f -name '*.proto' -exec dirname {} \; | sort -u `; do \
2020-01-30 11:41:24 +00:00
echo "${B}${G}⇒ Documentation for $$(basename $$f) ${R}"; \
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