File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ CPPCHECK_CMD = cppcheck \
50
50
--std=c99
51
51
52
52
CPPCHECK_DIRS = \
53
- $(top_srcdir ) /lib \
54
- $(top_srcdir ) /src
53
+ " $(top_srcdir ) /lib" \
54
+ " $(top_srcdir ) /src"
55
55
56
56
CPPCHECK_OUT_PREFIX = $(top_builddir ) /cppcheck-
57
57
@@ -106,3 +106,22 @@ cppcheck-split-all: \
106
106
cppcheck-unusedFunction \
107
107
cppcheck-missingInclude
108
108
109
+ INDENT_CMD = indent \
110
+ --gnu-style \
111
+ --format-first-column-comments \
112
+ --indent-level4 \
113
+ --brace-indent0 \
114
+ --line-length100 \
115
+ --no-tabs \
116
+ --blank-lines-after-procedures
117
+
118
+ INDENT_DIRS = \
119
+ "$(top_srcdir ) /lib" \
120
+ "$(top_srcdir ) /src" \
121
+ "$(top_srcdir ) /tests"
122
+
123
+ indent :
124
+ for directory in $( INDENT_DIRS) ; do \
125
+ find " $$ {directory}" -name ' *.[ch]' -print0 | \
126
+ xargs -0 $(INDENT_CMD ) ; \
127
+ done
You can’t perform that action at this time.
0 commit comments