[MPlayer-dev-eng] "libdeps" trick

Alex Beregszaszi alex at galaktik.hu
Fri Aug 30 12:37:13 CEST 2002


Hi,

> I've been bothered for some time now by the fact that MPlayer's make
> system doesn't like to recurse into subdirectories when the necessary
> libs already exist unless told to explicitly, so I came up with a
> little workaround. I was going to ask before including it, but since I
> made the 10l mistake of committing part of it before it was done, I
> figured I might as well go ahead and add the lines to Makefile. By
> themselves they do nothing, but if the attached file is put in the
> main mplayer dir as .libdeps, then make will recurse into any of the
> lib subdirectories it needs with contain changed .c or .h files during
> the make process. After that, the Makefiles in the individual dirs
> will takeover, and may or may not decide to actually build anything
> based on the rules, so it shouldn't hurt performance. IMO .libdeps
> should go in ./etc or something by default, so that users who want
> this functionality can enable it while everyone else can easily ignore
> it.
Very nice! I've commited it to etc/.
Would some write it into the docs?

-- 
Alex Beregszaszi  <alex at naxine.org>



More information about the MPlayer-dev-eng mailing list