forked from NotAShelf/rogged
build: migrate from Make to Zig build system + Just
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I7585121a5ec8e797adc43ba8e30d4ac86a6a6964
This commit is contained in:
parent
62c030527f
commit
7af642612b
7 changed files with 144 additions and 52 deletions
20
Justfile
Normal file
20
Justfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue