[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $(info ...) in variable, with expansion in recipes
From: |
Philip Guenther |
Subject: |
Re: $(info ...) in variable, with expansion in recipes |
Date: |
Tue, 8 Jul 2014 09:27:09 -0700 |
On Tue, Jul 8, 2014 at 5:14 AM, Yann Droneaud <address@hidden> wrote:
> Le vendredi 04 juillet 2014 à 12:36 -0700, Philip Guenther a écrit :
...
> > This can be confirmed by tell make that the RECIPE variable doesn't
> > need
> > to be exported. If you add this line to the Makefile:
> > unexport RECIPE
> >
> > then the second '2' output goes away.
>
> Thanks again, this is the perfect work around I was hoping for.
>
> Here's the new makefile fragment:
>
> ifeq ($(V),1)
> Q :=
> else
> Q ?= @
> endif
>
> all:
> $(Q) : $(info 1)
> $(Q)$(eval unexport RECIPE)$(RECIPE)
> $(Q) : $(info 3)
>
I give up: why do you feel the need to do the unexport via an $(eval) in
the recipe? What problem are you trying to solve?
(I am clever enough to know that I am not clever enough to use $(eval).)
Philip Guenther
- $(info ...) in variable, with expansion in recipes, Yann Droneaud, 2014/07/04
- Re: $(info ...) in variable, with expansion in recipes, Yann Droneaud, 2014/07/04
- Re: $(info ...) in variable, with expansion in recipes, Etan Reisner, 2014/07/04
- Re: $(info ...) in variable, with expansion in recipes, Yann Droneaud, 2014/07/04
- Re: $(info ...) in variable, with expansion in recipes, Philip Guenther, 2014/07/04
- Re: $(info ...) in variable, with expansion in recipes, Etan Reisner, 2014/07/04
- Re: $(info ...) in variable, with expansion in recipes, Yann Droneaud, 2014/07/08
- Re: $(info ...) in variable, with expansion in recipes,
Philip Guenther <=
- Re: $(info ...) in variable, with expansion in recipes, Yann Droneaud, 2014/07/15
- Re: $(info ...) in variable, with expansion in recipes, Etan Reisner, 2014/07/04