Subj : Re: Makefile To : comp.programming From : =?iso-8859-1?q?Asbj=F8rn_S=E6b=F8?= Date : Fri Sep 16 2005 12:27 pm Christian Christmann writes: > Hi, > > my Makefile contains this section: > > clean: > rm -f *.s ... > > However, when there are no *.s files in the current > directory gmake issues a warning: > > rm: cannot remove `*.s': No such file or directory > gmake: *** [clean] Error 1 Strange. I used the "-f" option just to get rid of that kind of errors. asbjs@ansatt20:~/tmp$ ls *.o ls: *.o: No such file or directory asbjs@ansatt20:~/tmp$ rm *.o rm: cannot remove `*.o': No such file or directory asbjs@ansatt20:~/tmp$ rm -f *.o asbjs@ansatt20:~/tmp$ Asbjørn -- Asbjørn Sæbø, post.doc. Centre for Quantifiable Quality of Service in Communication Systems Norwegian University of Science and Technology .