about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-09 23:47:11 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-09 23:47:11 +0100
commit3b2647519afeb52d35dcb85325359d31c576edc9 (patch)
treeccf50eb82f584776e0a12889210bb09548033b4e
parentaacde45376669ecc398ec9680b79424f0898c0ee (diff)
downloadchawan-3b2647519afeb52d35dcb85325359d31c576edc9.tar.gz
Makefile: only remove target's objdir on clean
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e2da6d32..8f5fd703 100644
--- a/Makefile
+++ b/Makefile
@@ -62,8 +62,7 @@ $(OBJDIR)/man/cha.1: doc/cha.1
 
 .PHONY: clean
 clean:
-	rm -rf "$(OUTDIR)"
-	rm -rf "$(OBJDIR)"
+	rm -rf "$(OBJDIR)/$(TARGET)"
 	rm -f lib/libquickjs.a
 
 .PHONY: manpage