make: add clean target

This commit is contained in:
Navid EMAD
2026-05-15 22:51:54 +02:00
parent 4f33d64c5c
commit ee1cbf1bb3

View File

@@ -47,7 +47,7 @@ help:
# $(ZIG) commands
# ------------
.PHONY: build build-v8-snapshot build-dev run run-release test bench data end2end
.PHONY: build build-v8-snapshot build-dev run run-release test bench data end2end clean
## Build v8 snapshot
build-v8-snapshot:
@@ -93,6 +93,10 @@ end2end:
@test -d ../demo
cd ../demo && go run runner/main.go
## Remove build artifacts (keeps v8/ and zig-pkg/ — slow to re-fetch)
clean:
rm -rf zig-out .zig-cache src/snapshot.bin
# Install and build required dependencies commands
# ------------
.PHONY: install