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>
Jeff King committed
Jan 30, 2024 at 00:38 UTC
5d5ca1b362b3bb6c436b2fec798446ddcf32c24b
1 file changed
+2
-2
Makefile
+2
-2
@@ -3676,14 +3676,14 @@ cocciclean:
3676
$(RM) contrib/coccinelle/*.cocci.patch
3677
3678
clean: profile-clean coverage-clean cocciclean
3679
- $(RM) -r .build
3679
+ $(RM) -r .build $(UNIT_TEST_BIN)
3680
$(RM) po/git.pot po/git-core.pot
3681
$(RM) git.res
3682
$(RM) $(OBJECTS)
3683
$(RM) headless-git.o
3684
$(RM) $(LIB_FILE) $(XDIFF_LIB) $(REFTABLE_LIB) $(REFTABLE_TEST_LIB)
3685
$(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) $(OTHER_PROGRAMS)
3686
- $(RM) $(TEST_PROGRAMS) $(UNIT_TEST_PROGS)
3686
+ $(RM) $(TEST_PROGRAMS)
3687
$(RM) $(FUZZ_PROGRAMS)
3688
$(RM) $(SP_OBJ)
3689
$(RM) $(HCC)