Subject: Re: building netbsd: using a .o as a source?
To: David Young <dyoung@pobox.com>
From: Todd Vierling <tv@duh.org>
List: tech-kern
Date: 09/17/2003 22:27:48
On Wed, 17 Sep 2003, David Young wrote:
: and cp fails: too few arguments. To debug, I change it to this,
:
: NORMAL_O?= echo cp "$<" "$@"
:
: and I see make(1) emit this,
:
: echo cp "" "athhal-elf.o"
$< only exists in implicit (.foo.bar:) rules. This is POSIX-compliant; the
fact that gmake puts the sources in $< is IMNSHO a bug.
You want ${.ALLSRC}, aka $>. NetBSD tends to favor expanded macros anyway,
so use ${.ALLSRC}.
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com>