Changing resolution of $^ in make

2002-10-08 Thread Robert Mecklenburg
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

Re: Changing resolution of $^ in make

2002-10-08 Thread Paul D. Smith
%% 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