From ee1cbf1bb367b8da75d0e75067afa9a0acb4bbf1 Mon Sep 17 00:00:00 2001 From: Navid EMAD Date: Fri, 15 May 2026 22:51:54 +0200 Subject: [PATCH] make: add clean target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 922c77a7..3266e5ee 100644 --- a/Makefile +++ b/Makefile @@ -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