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


Hi
When I typping make clean in terminal,The following message is 
issued:ptsg@ubuntu:~/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

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to