I apologize in advance if this cross-posting is inappropriate, but it
seemed reasonable at the time...
The following makefile yields two different values for $^ when run
twice in succession:
# Example makefile
vpath %.in /c/work/tmp/src
vpath %.out /c/work/tmp/out
default: stuff/foo.out
%% Regarding Changing resolution of $^ in make; you wrote:
rm vpath %.in /c/work/tmp/src
rm vpath %.out /c/work/tmp/out
rm default: stuff/foo.out
rm # $^
rm %.out: %.in
rm touch /c/work/tmp/out/$@
rm the first time (when the prerequisite stuff/foo.out doesn't
rm exist
2 matches
Mail list logo