[MPlayer-DOCS] homepage build system

Josh Varner jlvarner at gmail.com
Sun Nov 7 15:28:20 CET 2004


On Sun, 7 Nov 2004 08:23:20 -0600, Josh Varner <jlvarner at gmail.com> wrote:
> On Sat, 6 Nov 2004 09:11:17 +0100, Torinthiel <torinthiel at megapolis.pl> wrote:
> > On Sat, Nov 06, 2004 at 09:08:19AM +0100, Torinthiel wrote:
> > > As discussed with Diego, I've been trying to reimplement homepage
> > > generation based on make.
> >
> > And I really should attach my work ;)
> >
> > 
> In Makefile.new in the definition for lang-def you have the following line:
> 
> $(foreach lang, $(TRANSLATIONS),$(eval $(call lang-def,$(lang),$(1))))
> 
> where you are using eval. Then you call lang-def in this foreach with
> another eval.
> 
> $(foreach design, $(DESIGNS),$(eval $(call design-def,$(design))))
> 
> The foreach in lang-def could be a simple string expansion that gets
> evaled by this second call. It could be that the nested evals are
> causing some weird make bug to show up. the eval construct is new
> enough to still have kinks that need to be worked out.
> 
> One thing to try is unrolling the evals to see if it works.
> Josh
> 
Taking a second look at the one that works the first eval foreach is
not inside the definition for lang-def so that may be the key:

define lang-def
$(1): $(if $(wildcard src/selector-$(1)),$(call SRC2HTML, 
 . . . 
endef
$(foreach lang, $(TRANSLATIONS),$(eval $(call lang-def,$(lang))))

Josh

P.S. Sorry, too early to actually gather all of my thoughts at once.




More information about the MPlayer-DOCS mailing list