From a6ff5427912389859f4ed545e87f58808ee27bb5 Mon Sep 17 00:00:00 2001 From: Raphael Simon Date: Tue, 16 Dec 2025 18:39:05 -0800 Subject: [PATCH] common.mk: fix clean target to remove binaries, not source directories The clean target was using 'rm -rf ./cmd/$(APP)' which deletes the entire source directory. Since 'go build ./cmd/$(APP)' outputs the binary to the current directory (not into cmd/), clean should remove './$(APP)' instead. This prevents accidental deletion of customized cmd/ files (like the streaming example's http.go with pingPonger). --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index a917daeb..38e4a2d1 100644 --- a/common.mk +++ b/common.mk @@ -70,7 +70,7 @@ build: @go build "./cmd/$(APP)" && go build "./cmd/$(APP)-cli" clean: - @rm -rf "./cmd/$(APP)" "./cmd/$(APP)-cli" + @rm -f "./$(APP)" "./$(APP)-cli" test: @echo TESTING...