[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use $^ automatic variable with prerequisites built on target-
Re: how to use $^ automatic variable with prerequisites built on target-specific variable ?
Fri, 09 Jul 2010 11:32:45 +0200
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:220.127.116.11) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5
Le 09/07/2010 10:23, Axel a écrit :
I m using a target with prerequisites based on target-specific variable,
but it seems that the $^ doesn't work and is empty in this use-case :
test: FILE = prereq
echo Variable: $(FILE) Prereq: $^
"make test" displays that $^ is empty, but the prerequesites are checked
and built. Is this a normal behaviour ? The workaround for me is to use
$(FILE) rather than $^ but I assumed that $^ would have worked.
Thanks in advance.
I ll add that the prerequisites are not built when using this syntax,
the prereq target is never processed.
So I ll have to find a workaround, but is this behaviour expected ?