From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 21 02:50:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C87E106564A for ; Mon, 21 Jun 2010 02:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6AFAA8FC08 for ; Mon, 21 Jun 2010 02:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5L2o4u0033249 for ; Mon, 21 Jun 2010 02:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5L2o4Bj033248; Mon, 21 Jun 2010 02:50:04 GMT (envelope-from gnats) Date: Mon, 21 Jun 2010 02:50:04 GMT Message-Id: <201006210250.o5L2o4Bj033248@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Garrett Wollman Cc: Subject: Re: bin/148024: Some built-in AT&T/POSIX compat make variables are broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Garrett Wollman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2010 02:50:04 -0000 The following reply was made to PR bin/148024; it has been noted by GNATS. From: Garrett Wollman 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 , 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