This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
"rm -f" better in "make clean" targets
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 5 Jan 2009 13:11:00 +0000 (14:11 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 5 Jan 2009 13:11:00 +0000 (14:11 +0100)
It always succeeds and does not warn.

Makefile.SH

index 6d6ed31..7773f09 100644 (file)
@@ -1223,8 +1223,7 @@ _tidy:
        -cd pod; $(LDLIBPTH) $(MAKE) clean
        -cd utils; $(LDLIBPTH) $(MAKE) clean
        -cd x2p; $(LDLIBPTH) $(MAKE) clean
-       -rm lib/Config_git.pl
-       -rm git_version.h
+       -rm -f lib/Config_git.pl git_version.h
        -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) $(nonxs_ext) ; do \
        $(LDLIBPTH) sh ext/util/make_ext clean $$x MAKE=$(MAKE) ; \
        done