makefile: introduce a format command to run clang-format all over the kernel source.
This commit is contained in:
parent
c4e98f5ef2
commit
a379d66784
47 changed files with 5092 additions and 4603 deletions
|
@ -266,3 +266,8 @@ clean:
|
|||
distclean:
|
||||
$(MAKE) -C kernel distclean
|
||||
rm -rf iso_root *.iso *.hdd kernel-deps limine ovmf
|
||||
|
||||
# Make some function to run clang-format all over the kernel
|
||||
.PHONY: format
|
||||
format:
|
||||
clang-format -i -style=file $(shell find kernel/src -name '*.c' -or -name '*.h')
|
Loading…
Add table
Add a link
Reference in a new issue