bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Target-specific variable in subdirectory problem


From: Sven C. Dack
Subject: Re: Target-specific variable in subdirectory problem
Date: Wed, 2 Aug 2017 20:40:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

It's my understanding that we don't actually know what Benjamin wants to do, because nobody has asked. So I don't see how this would make me wrong.

From his mail am I assuming he wants his Makefile to print "BAR" for a target "test-stem" as well as "subdir/test-stem", which is what he will get when he uses $(eval ...).

Respectfully,

Sven



On 02/08/17 20:12, Kyle Rose wrote:
On Wed, Aug 2, 2017 at 3:03 PM, Sven C. Dack <address@hidden> wrote:
Hello,

try it with the following rules:

test-%: $(eval FOO = BAR)
test-%:
     echo $(FOO)
FOO is a global variable in this case. Not sure what you're trying to
demonstrate here.

Kyle

_______________________________________________
Bug-make mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-make





reply via email to

[Prev in Thread] Current Thread [Next in Thread]