mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Add indent rule in makefile
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
c6e094f483
commit
41f9b60a15
23
Makefile.am
23
Makefile.am
@ -50,8 +50,8 @@ CPPCHECK_CMD = cppcheck \
|
|||||||
--std=c99
|
--std=c99
|
||||||
|
|
||||||
CPPCHECK_DIRS = \
|
CPPCHECK_DIRS = \
|
||||||
$(top_srcdir)/lib \
|
"$(top_srcdir)/lib" \
|
||||||
$(top_srcdir)/src
|
"$(top_srcdir)/src"
|
||||||
|
|
||||||
CPPCHECK_OUT_PREFIX = $(top_builddir)/cppcheck-
|
CPPCHECK_OUT_PREFIX = $(top_builddir)/cppcheck-
|
||||||
|
|
||||||
@ -106,3 +106,22 @@ cppcheck-split-all: \
|
|||||||
cppcheck-unusedFunction \
|
cppcheck-unusedFunction \
|
||||||
cppcheck-missingInclude
|
cppcheck-missingInclude
|
||||||
|
|
||||||
|
INDENT_CMD = indent \
|
||||||
|
--gnu-style \
|
||||||
|
--format-first-column-comments \
|
||||||
|
--indent-level4 \
|
||||||
|
--brace-indent0 \
|
||||||
|
--line-length100 \
|
||||||
|
--no-tabs \
|
||||||
|
--blank-lines-after-procedures
|
||||||
|
|
||||||
|
INDENT_DIRS = \
|
||||||
|
"$(top_srcdir)/lib" \
|
||||||
|
"$(top_srcdir)/src" \
|
||||||
|
"$(top_srcdir)/tests"
|
||||||
|
|
||||||
|
indent:
|
||||||
|
for directory in $(INDENT_DIRS); do \
|
||||||
|
find "$${directory}" -name '*.[ch]' -print0 | \
|
||||||
|
xargs -0 $(INDENT_CMD); \
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user