about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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