summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-03-27 11:39:12 -0400
committerFreya Murphy <freya@freyacat.org>2025-03-27 11:39:12 -0400
commit0ff301cda68669c59351e5854ce98f2cf460543f (patch)
treecfe8f976261962420ada64b821559b9da0a56841 /Makefile
parentadd compile_flags.txt for clangd lsp (diff)
downloadcomus-0ff301cda68669c59351e5854ce98f2cf460543f.tar.gz
comus-0ff301cda68669c59351e5854ce98f2cf460543f.tar.bz2
comus-0ff301cda68669c59351e5854ce98f2cf460543f.zip
pull upstream changes, add auto formatting
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3cf44fe..1283f3a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
+### Copyright (c) 2025 Freya Murphy <freya@freyacat.org>
-.PHONY: build clean qemu
+.PHONY: build fmt clean qemu
.SILENT:
UNAME := $(shell uname)
@@ -31,6 +32,9 @@ clean:
build:
zig build
+fmt:
+ clang-format -i $(shell find -type f -name "*.[ch]")
+
bin/boot.bin: build
cd bin && \
objcopy -S -O binary -j .text boot boot.bin