[sheepdog] [PATCH] makefile: fix an error when no args for 'rm'
Liu Yuan
namei.unix at gmail.com
Sun May 20 17:22:11 CEST 2012
From: Liu Yuan <tailai.ly at taobao.com>
This patch fixes the following err for 'make clean':
...
find -name '*.orig' -or -name '*.rej' | xargs rm
rm: missing operand
Try `rm --help' for more information.
make[1]: *** [clean-generic] Error 123
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 2c9bcc8..52a8bea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,7 +30,7 @@ dist-clean-local:
clean-generic:
rm -rf $(SPEC) $(TARFILE) cscope*
- find -name '*.orig' -or -name '*.rej' | xargs rm
+ find -name '*.orig' -or -name '*.rej' | xargs rm -rf
cscope:
@echo create cscope.out
--
1.7.10.2
More information about the sheepdog
mailing list