[sheepdog] [PATCH] makefile: fix an error when no args for 'rm'

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun May 20 17:28:53 CEST 2012


At Sun, 20 May 2012 23:22:11 +0800,
Liu Yuan wrote:
> 
> 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

Adding only '-f' looks enough.

Thanks,

Kazutaka



More information about the sheepdog mailing list