[MPlayer-dev-eng] [PATCH] Always run make dep

Ivan Kalvachev ikalvachev at gmail.com
Wed Aug 29 14:33:27 CEST 2007


2007/8/29, Carl Eugen Hoyos <cehoyos at ag.or.at>:
> Hi!
>
> I know this is controversial, but it would save us some reports on -users.
> Is it possible to run make dep inside a directory only if ANY source
> file is newer than .depend?
>
> Carl Eugen
>
> Index: Makefile
> ===================================================================
> --- Makefile    (Revision 24288)
> +++ Makefile    (Arbeitskopie)
> @@ -130,8 +130,10 @@
>          vidix \
>
>
> -all:   $(ALL_PRG)
> +all:   dep progs
>
> +progs: $(ALL_PRG)
> +
>  dep depend:: help_mp.h version.h codecs.conf.h
>         @for a in $(PARTS); do $(MAKE) -C $$a dep; done

We already discussed on irc, so I'd like to make my point/recommendation public.

We don't need to `make dep` on one time successful build.
`make dep` i needed when `make all` is invoked again (to resume broken
build or to recompile with new changes).

So the solution I have in mind is:
First time `make all` is called it touches a file .need_depend.
When it is called again if .need_depend exists but .depend doesn't,
then run `make dep`



More information about the MPlayer-dev-eng mailing list