help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: please help me


From: Bryan Ischo
Subject: Re: please help me
Date: Sun, 18 Dec 2011 12:26:30 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111108 Thunderbird/8.0

On 12/18/11 05:16, Khadigeh Beiranvand wrote:


Hi
When I typping make clean in terminal,The following message is 
issued:address@hidden:~/ptsgcodes/xpdp1/src$ make clean
rm: cannot remove `*~': No such file or directory
make: *** [clean] Error 1
my makefile is:

                 @rm *.o *~

The error you are seeing is harmless; it is telling you that it can't remove '*~' because that file does not exist. If you had any files that ended in '~' that command would remove them, but when there are none, you get this error (because, for reasons I never understood, typical Unix shell behavior is for the glob symbol '*' to be used literally if there are no matching files).

Change this line to:

    @rm -f *.o *~

This will cause the lack of any file ending in '~' to be silently ignored rather than reported as an error.

Bryan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]