[MPlayer-dev-eng] [PATCH] ignore "make clean" errors in ffmpeg/

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Sep 6 00:15:50 CEST 2011


Hello,
if e.g. config.mak for example disappeared, the "make -C ffmpeg clean"
will fail and then none of the MPlayer binaries will be removed.
There is likely a better way, but attached patch would just ignore any
failures so that at least the MPlayer binaries will be removed no
matter what.
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	(revision 34061)
+++ Makefile	(working copy)
@@ -918,12 +918,12 @@
 	rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man)))
 
 clean:
-	$(MAKE) -C ffmpeg $@
+	-$(MAKE) -C ffmpeg $@
 	-rm -f $(call ADD_ALL_DIRS,/*.o /*.a /*.ho /*~)
 	-rm -f $(call ADD_ALL_EXESUFS,mplayer mencoder)
 
 distclean: clean testsclean toolsclean driversclean dhahelperclean
-	$(MAKE) -C ffmpeg $@
+	-$(MAKE) -C ffmpeg $@
 	-rm -rf DOCS/tech/doxygen
 	-rm -f $(call ADD_ALL_DIRS,/*.d)
 	-rm -f config.* codecs.conf.h help_mp.h version.h TAGS tags


More information about the MPlayer-dev-eng mailing list