From: Matt Kraai Date: Wed, 13 Feb 2013 15:57:48 +0000 (-0800) Subject: Makefile: don't run "rm" without any files X-Git-Url: http://git.tremily.us/?p=git.git;a=commitdiff_plain;h=61564ca5bf29bb8039b865514a7593fc7b6c5440 Makefile: don't run "rm" without any files When COMPUTE_HEADER_DEPENDENCIES is set to "auto" and the compiler does not support it, $(dep_dirs) becomes empty. "make clean" runs "rm -rf $(dep_dirs)", which can fail in such a case. Signed-off-by: Matt Kraai Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 5a2e02df4..c2e366615 100644 --- a/Makefile +++ b/Makefile @@ -2414,8 +2414,7 @@ clean: profile-clean builtin/*.o $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB) $(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X $(RM) $(TEST_PROGRAMS) - $(RM) -r bin-wrappers - $(RM) -r $(dep_dirs) + $(RM) -r bin-wrappers $(dep_dirs) $(RM) -r po/build/ $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h $(ETAGS_TARGET) tags cscope* $(RM) -r $(GIT_TARNAME) .doc-tmp-dir