bin/148024: Some built-in AT&T/POSIX compat make variables are broken

Garrett Wollman wollman at hergotha.csail.mit.edu
Mon Jun 21 02:50:04 UTC 2010


The following reply was made to PR bin/148024; it has been noted by GNATS.

From: Garrett Wollman <wollman at hergotha.csail.mit.edu>
To: gcooper at freebsd.org
Cc: freebsd-gnats-submit at 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 at www.freebsd.org>,
 gcooper at 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
 


More information about the freebsd-bugs mailing list