Skip to content

Commit 61564ca

Browse files
Matt Kraaigitster
authored andcommitted
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>
1 parent 5bf72ed commit 61564ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,8 +2414,7 @@ clean: profile-clean
24142414
builtin/*.o $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB)
24152415
$(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X
24162416
$(RM) $(TEST_PROGRAMS)
2417-
$(RM) -r bin-wrappers
2418-
$(RM) -r $(dep_dirs)
2417+
$(RM) -r bin-wrappers $(dep_dirs)
24192418
$(RM) -r po/build/
24202419
$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h $(ETAGS_TARGET) tags cscope*
24212420
$(RM) -r $(GIT_TARNAME) .doc-tmp-dir

0 commit comments

Comments
 (0)