RE: canonicalization/stripping of leading ./

2007-11-28 Thread Martin Dorey
age- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 14:42 To: bug-make@gnu.org Subject: RE: canonicalization/stripping of leading ./ On Wed, 28 Nov 2007, Martin Dorey wrote: > http://www.gnu.org/software/make/manua

RE: canonicalization/stripping of leading ./

2007-11-28 Thread dherring
(e.g. use $(srcdir) in the rules; not in the prerequisites). Later, Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 12:53 To: bug-make@gnu.org Subject: canonicalization/stripping of leading ./ He

RE: canonicalization/stripping of leading ./

2007-11-28 Thread Martin Dorey
./file and file are considered to be the same file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 12:53 To: bug-make@gnu.org Subject: canonicalization/stripping of leading ./ Here's an example makefi

canonicalization/stripping of leading ./

2007-11-28 Thread dherring
Here's an example makefile: cat <<_EOF > Makefile test.out: ./script.sh $< > $@ _EOF Now when I run make, it executes `script.sh > test.out` instead of `./script.sh > test.out` This is all fine when 'PATH=.:', and sometimes acceptable when 'PATH=:.'; but in the general case, its very