[FFmpeg-devel] [PATCH] Non-recursive makefiles

Måns Rullgård mans
Fri Mar 28 19:19:08 CET 2008


Balatoni Denes wrote:
> Hi!
>
> Maybe I misunderstand something, but ...
>
> Friday 28 March 2008 03:02-kor M?ns Rullg?rd ezt ?rta:
>> +$(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
>> +       $(LN_S) $(SLIBNAME_WITH_MAJOR) $$@
>
> if I am not mistaken, things like this won't work, when this rule is included
> several times in the toplevel Makefile, because only the last value of
> $(NAME) at the end of parsing the makefile - and hence
> $(SLIBNAME_WITH_MAJOR) - will be used in the command -- and not the value of
> $(NAME) and $(SLIBNAME_WITH_MAJOR) at the time of parsing the rule&command.

Why don't you try it out?  It works.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list