aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-01-30 00:38:56 -0500
committerJunio C Hamano <gitster@pobox.com>2024-01-29 21:57:22 -0800
commit5d5ca1b362b3bb6c436b2fec798446ddcf32c24b (patch)
tree16f5c7e0e4a38220bfae2c8a6c10346358584d43
parentMakefile: use mkdir_p_parent_template for UNIT_TEST_BIN (diff)
downloadgit-5d5ca1b362b3bb6c436b2fec798446ddcf32c24b.tar.gz
git-5d5ca1b362b3bb6c436b2fec798446ddcf32c24b.zip
Makefile: remove UNIT_TEST_BIN directory with "make clean"
We remove $(UNIT_TEST_PROGS), but that leaves the automatically generated "bin" dir they reside in. And once we start cleaning that, there is no point in removing the individual programs, as they'll by wiped out by the recurse "rm". Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 282a5da713..23723367b8 100644
--- a/Makefile
+++ b/Makefile
@@ -3676,14 +3676,14 @@ cocciclean:
$(RM) contrib/coccinelle/*.cocci.patch
clean: profile-clean coverage-clean cocciclean
- $(RM) -r .build
+ $(RM) -r .build $(UNIT_TEST_BIN)
$(RM) po/git.pot po/git-core.pot
$(RM) git.res
$(RM) $(OBJECTS)
$(RM) headless-git.o
$(RM) $(LIB_FILE) $(XDIFF_LIB) $(REFTABLE_LIB) $(REFTABLE_TEST_LIB)
$(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) $(OTHER_PROGRAMS)
- $(RM) $(TEST_PROGRAMS) $(UNIT_TEST_PROGS)
+ $(RM) $(TEST_PROGRAMS)
$(RM) $(FUZZ_PROGRAMS)
$(RM) $(SP_OBJ)
$(RM) $(HCC)