[Ffmpeg-devel] (UPDATE) ffmpeg uninstall patch

Måns Rullgård mru
Thu May 18 10:49:10 CEST 2006


Diego Biurrun said:
> On Thu, May 18, 2006 at 11:00:28AM +1000, Richard wrote:
>> and also added a check to make sure
>> the directory $(incdir) existed before calling rmdir (something I
>> really should have done in the first place). Now if you "make
>> uninstall" twice in a row it won't cause a Makefile error.
>
> The way to do this in Makefiles is to prepend a '-' to the command, make
> will then ignore any errors it returns.  rm -rf is another possibility,
> but of course you need to be very careful as to what dir you blow away.

I would strongly advise against using rm -rf (or even rm -r) in a makefile.
The chances of getting something wrong are much too high.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list