diff options
author | Matt Kraai <matt.kraai@amo.abbott.com> | 2013-02-13 07:57:48 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-13 12:30:43 -0800 |
commit | 61564ca5bf29bb8039b865514a7593fc7b6c5440 (patch) | |
tree | d891023d776ba32c1dae7f57cf5681c3449bb127 /Makefile | |
parent | 5bf72ed2e7ef82d5ef7a35c978dc72576fdb0efc (diff) | |
download | git-61564ca5bf29bb8039b865514a7593fc7b6c5440.tar.gz |
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 <matt.kraai@amo.abbott.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |