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: [email protected] [mailto:[email protected]] On Behalf Of Mark Galeck (CW) Sent: Thursday, March 01, 2012 10:00 AM To: [email protected] Subject: why is ./foobar target noted as foobar ?? Hello, With this makefile ./foobar: touch $@ make prints "touch foobar" . _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
