git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Makefile: don't run rm without any files
@ 2013-02-13 15:57 Matt Kraai
  2013-02-13 16:51 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Kraai @ 2013-02-13 15:57 UTC (permalink / raw)
  To: git; +Cc: Jonathan Nieder, Matt Kraai

From: Matt Kraai <matt.kraai@amo.abbott.com>

"rm -f -r" fails on QNX when not passed any files to remove.  This breaks
the clean target, since dep_dirs is empty.  Avoid this by merging two rm
command lines.

Signed-off-by: Matt Kraai <matt.kraai@amo.abbott.com>
---
 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 5a2e02d..c2e3666 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
-- 
1.8.1.3.570.g3074c9d

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-13 20:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13 15:57 [PATCH] Makefile: don't run rm without any files Matt Kraai
2013-02-13 16:51 ` Junio C Hamano
2013-02-13 17:00   ` Matt Kraai
2013-02-13 20:01     ` Junio C Hamano
2013-02-13 20:12       ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).