aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 182e97d..0ef7a60 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ CROSS_COMPILE ?= $(ARCH)-unknown-elf
OBJCOPY != [ $(LLVM) ] \
&& echo llvm-objcopy \
- || echo $(CROSS_COMPILE)-objcopy
+ || echo $(CROSS_COMPILE)-objcopy
COMPILER != [ $(LLVM) ] \
&& echo clang --target="$(CROSS_COMPILE)" \
@@ -82,6 +82,10 @@ kernel.bin: kernel.elf
apos.bin: init.bin kernel.bin
cat init.bin kernel.bin > apos.bin
+format:
+ find arch lib common include -iname '*.[ch]' \
+ -exec clang-format -i -style=file {} \;
+
clean:
$(RM) -r $(CLEANUP)