From: Junio C Hamano Date: Fri, 15 Apr 2016 17:06:52 +0000 (-0700) Subject: Makefile: clean *.o files we create X-Git-Tag: v2.9.0-rc0~24^2~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7897d84b8240720352e23030c35db461581b68e3;p=git-core%2Fgit.git Makefile: clean *.o files we create The part that removes object files in the 'clean' target predates various Makefile macros that list object files we create, and instead removes the objects with shell glob, perpetually requiring updates whenever a new location that builds object files is added. Simplify the target by removing $(OBJECTS), which is supposed to have all the objects we create during the build. Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index c7354bf2a..0bed5cb33 100644 --- a/Makefile +++ b/Makefile @@ -2456,8 +2456,8 @@ profile-clean: $(RM) $(addsuffix *.gcno,$(addprefix $(PROFILE_DIR)/, $(object_dirs))) clean: profile-clean coverage-clean - $(RM) *.o *.res refs/*.o block-sha1/*.o ppc/*.o compat/*.o compat/*/*.o - $(RM) xdiff/*.o vcs-svn/*.o ewah/*.o builtin/*.o + $(RM) *.res + $(RM) $(OBJECTS) $(RM) $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB) $(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X $(RM) $(TEST_PROGRAMS) $(NO_INSTALL)