mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-27 00:19:31 -05:00
10 lines
296 B
Makefile
10 lines
296 B
Makefile
# Uses ../.clang-format
|
|
FMTFILES=main.c lib.h lib.c proto.h proto.c assert.c assert.h led.c led.h
|
|
.PHONY: fmt
|
|
fmt:
|
|
clang-format --dry-run --ferror-limit=0 $(FMTFILES)
|
|
clang-format --verbose -i $(FMTFILES)
|
|
.PHONY: checkfmt
|
|
checkfmt:
|
|
clang-format --dry-run --ferror-limit=0 --Werror $(FMTFILES)
|