automake
[Top][All Lists]
Advanced

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

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


From: Axel
Subject: how to use $^ automatic variable with prerequisites built on target-specific variable ?
Date: Fri, 09 Jul 2010 10:17:21 +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

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.



reply via email to

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