build: migrate from Make to Zig build system + Just

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I7585121a5ec8e797adc43ba8e30d4ac86a6a6964
This commit is contained in:
raf 2026-04-05 17:00:17 +03:00
commit 7af642612b
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
7 changed files with 144 additions and 52 deletions

20
Justfile Normal file
View file

@ -0,0 +1,20 @@
# Build the project
build:
zig build
# Build and run
dev:
zig build run
# Clean build artifacts
clean:
rm -rf zig-out .zig-cache
# Format all C source files
fmt:
clang-format -i src/*.c src/*.h
zig fmt **/*.zig
# Check formatting
fmt-check:
clang-format --dry-run --Werror src/*.c src/*.h