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 <gitster@pobox.com>

Junio C Hamano committed Apr 15, 2016 at 10:06 UTC 7897d84b8240720352e23030c35db461581b68e3
1 file changed +2 -2
Makefile
+2 -2
@@ -2456,8 +2456,8 @@ profile-clean:
2456 $(RM) $(addsuffix *.gcno,$(addprefix $(PROFILE_DIR)/, $(object_dirs)))
2457
2458 clean: profile-clean coverage-clean
2459 - $(RM) *.o *.res refs/*.o block-sha1/*.o ppc/*.o compat/*.o compat/*/*.o
2460 - $(RM) xdiff/*.o vcs-svn/*.o ewah/*.o builtin/*.o
2459 + $(RM) *.res
2460 + $(RM) $(OBJECTS)
2461 $(RM) $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB)
2462 $(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X
2463 $(RM) $(TEST_PROGRAMS) $(NO_INSTALL)