Skip to content

Commit 0f0a71d

Browse files
committed
makefile: added uncrustify target for code format
1 parent 5ae28a2 commit 0f0a71d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.Makefile.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ HELP_check-uncrustify = check if formatting code with uncrustify is necessary
132132
check-uncrustify: | check-docker
133133
@make --no-print-directory -C $(DOCKERDIR) uncrustify \
134134
EXEC="git ls-files -ico $(foreach PATTERN,$(FORMAT),-x $(PATTERN)) \
135-
| xargs -I % sh -c 'uncrustify -c $(UNCRUSTIFY_CFG) -f % \
136-
| git -c color.diff.new='normal 22' \
137-
-c color.diff.old='normal 88' \
135+
| xargs -I % sh -c \"uncrustify -c $(UNCRUSTIFY_CFG) -f % \
136+
| git -c color.diff.new=normal\\ 22 \
137+
-c color.diff.old=normal\\ 88 \
138138
diff --exit-code \
139139
--no-index \
140140
--color \
141141
--word-diff=color \
142-
--word-diff-regex=. % - '"
142+
--word-diff-regex=. % - \""
143143

144144
### vscode ###
145145

0 commit comments

Comments
 (0)