Date: Mon, 21 Jun 2010 02:50:04 GMT From: Garrett Wollman <wollman@hergotha.csail.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/148024: Some built-in AT&T/POSIX compat make variables are broken Message-ID: <201006210250.o5L2o4Bj033248@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/148024; it has been noted by GNATS.
From: Garrett Wollman <wollman@hergotha.csail.mit.edu>
To: gcooper@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/148024: Some built-in AT&T/POSIX compat make variables are
broken
Date: Sun, 20 Jun 2010 22:46:33 -0400 (EDT)
In article
<mit.lcs.mail.freebsd-bugs/201006210044.o5L0iPXK000857@www.freebsd.org>,
gcooper@freebsd.org writes:
>foo: bar
> @echo target: $@ prereq: $<
>$ make -f ~/Makefile.prereq foo
>target: foo prereq:
>
>The above invocation should have printed out:
>
>target: foo prereq: bar
No. $< is only defined for pattern rules.
>$<
> In an inference rule, the $< macro shall evaluate to the filename
>whose existence allowed the inference rule to be chosen for the target.
>In the .DEFAULT rule, the $< macro shall evaluate to the current target
>name. The meaning of the $< macro shall be otherwise unspecified.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-GAWollman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006210250.o5L2o4Bj033248>
