mirror of https://github.com/openXC7/prjxray.git
infra: Add docs to make format.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
parent
22fe886d44
commit
0def5b2eeb
5
Makefile
5
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue