Skip to content

Commit c1590ac

Browse files
committed
makefile: rename target uncrustify to format
1 parent 9156089 commit c1590ac

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.Makefile.mk

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,20 @@ CHECK += check-monitor
116116
HELP_check-monitor = check env if monitor is possible
117117
check-monitor: | check-docker check-dev
118118

119-
### uncrustidy code format
119+
### code format
120120

121-
.PHONY: uncrustify
122-
TARGET += uncrustify
123-
HELP_uncrustify = formats code with uncrustify
124-
uncrustify: | check-docker
121+
.PHONY: format
122+
TARGET += format
123+
HELP_format = formats code with uncrustify
124+
format: | check-docker
125125
@make --no-print-directory -C $(DOCKERDIR) uncrustify \
126126
EXEC="git ls-files -ico $(foreach PATTERN,$(FORMAT),-x $(PATTERN)) \
127127
| xargs -I % uncrustify -c $(UNCRUSTIFY_CFG) --replace --no-backup %"
128128

129-
.PHONY: check-uncrustify
130-
TARGET += check-uncrustify
131-
HELP_check-uncrustify = check if formatting code with uncrustify is necessary
132-
check-uncrustify: | check-docker
129+
.PHONY: check-format
130+
TARGET += check-format
131+
HELP_check-format = check if formatting code with uncrustify is necessary
132+
check-format: | check-docker
133133
@make --no-print-directory -C $(DOCKERDIR) uncrustify \
134134
EXEC="git ls-files -ico $(foreach PATTERN,$(FORMAT),-x $(PATTERN)) \
135135
| xargs -I % sh -c \"uncrustify -c $(UNCRUSTIFY_CFG) -f % \

.github/workflows/formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- name: build uncrustify image
1313
run: make -C docker uncrustify-image
1414
- name: check code format
15-
run: make -C lifesensor DOCKEROPTS=--tty=false check-uncrustify
15+
run: make -C lifesensor DOCKEROPTS=--tty=false check-format

0 commit comments

Comments
 (0)