Zhang Xiao Ping wrote:
> Hi jim,
>
> I have two questions.
>
> 1.
>
>  47 clean:
>  48         -rm -rf $(VER)
>
> These can be found not only in eddie's code but also almost in every 
> Makefile.sfw.
>
> Why need '-' before 'rm' and what does it means?  I did not seen 
> Makefile like this before.
>
> And in my code, i did not use '-', is it right?
>
>

A make will terminate if any command returns a failure status. That's 
why you see rules like:

clean:
        -rm -rf $(VER)

Make ignores the returned status on command lines that begin with a dash.

-Eddie

Reply via email to