From 0def5b2eebea8b1e94e50ddd8242a59d6510fd64 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Thu, 10 Jan 2019 19:56:11 -0800 Subject: [PATCH] infra: Add docs to make format. Signed-off-by: Tim 'mithro' Ansell --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index acb9c25d..966c026b 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,9 @@ format-cpp: find . -name \*.cc $(FORMAT_EXCLUDE) -print0 | xargs -0 -P $$(nproc) ${CLANG_FORMAT} -style=file -i find . -name \*.h $(FORMAT_EXCLUDE) -print0 | xargs -0 -P $$(nproc) ${CLANG_FORMAT} -style=file -i +format-docs: + ./.github/update-contributing.py + PYTHON_FORMAT ?= yapf format-py: $(IN_ENV) find . -name \*.py $(FORMAT_EXCLUDE) -print0 | xargs -0 -P $$(nproc) yapf -p -i @@ -52,7 +55,7 @@ TCL_FORMAT ?= utils//tcl-reformat.sh format-tcl: find . -name \*.tcl $(FORMAT_EXCLUDE) -print0 | xargs -0 -P $$(nproc) -n 1 $(TCL_FORMAT) -format: format-cpp format-py format-tcl +format: format-cpp format-docs format-py format-tcl @true .PHONY: format format-cpp format-py format-tcl