[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: why is ./foobar target noted as foobar ??
From: |
Mark Galeck (CW) |
Subject: |
RE: why is ./foobar target noted as foobar ?? |
Date: |
Thu, 1 Mar 2012 10:17:43 -0800 |
I know the manual says "$@ is the _file_ name" but surely, this does not
literally mean "only the file name not the directory". For example, dir/foobar
works. Also dir/./foobar works. Only "." at the very beginning does not work.
I get an unnecessary recompilation of the Linux kernel, and the diagnostics says
GEN include/generated/bounds.h - due to include/generated/bounds.h not in
./arch/powerpc/kernel/asm-offsets.s ./include/generated/asm-offsets.h
./include/generated/bounds.h ./kernel/bounds.s
Well, the "filter" function operates on strings only and does not know anything
about ./ being redundant, but, $@ appears to know about it. Duh!
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Mark Galeck (CW)
Sent: Thursday, March 01, 2012 10:00 AM
To: address@hidden
Subject: why is ./foobar target noted as foobar ??
Hello,
With this makefile
./foobar:
touch $@
make prints "touch foobar" .