automake
[Top][All Lists]
Advanced

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

Re: how to use $^ automatic variable with prerequisites built on target-


From: Axel
Subject: Re: how to use $^ automatic variable with prerequisites built on target-specific variable ?
Date: Fri, 09 Jul 2010 11:32:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5

Le 09/07/2010 10:23, Axel a écrit :

Hello

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 :

prereq:
touch prereq

test: FILE = prereq

test: $(FILE)
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 ?



reply via email to

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