[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newbie question about template expansion
From: |
Paul Smith |
Subject: |
Re: newbie question about template expansion |
Date: |
Thu, 25 Feb 2010 13:53:53 -0500 |
On Thu, 2010-02-25 at 09:08 -0800, gharding3 wrote:
> HI,
>
> Trying to figure out exactly what I'm doing wrong... I've tried using $(eval
> foobar), $(eval ($call foobar)), each time the result is the same: nothing
> is printed. Any ideas?
>
> Makefile
> ========
>
> define foobar
> FOO = foo
> BAR = bar
> endef
>
> $(eval foobar)
>
> build:
> echo $(FOO)
> echo $(BAR)
Eval takes an argument (string) to be evaluated, not the name of a
variable to be evaluated. Write it like this:
$(eval $(foobar))