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 ?