Subject: Re: .print [was: Re: make: .PATH: work for .include]
To: Hubert Feyrer <hubert@feyrer.de>
From: David Holland <dholland+netbsd@eecs.harvard.edu>
List: tech-toolchain
Date: 10/20/2007 20:51:24
On Sat, Oct 20, 2007 at 12:31:36PM +0200, Hubert Feyrer wrote:
 > I was wading through the mess of .if(n)def statements in pkgsrc/mk/* a few 
 > weeks ago, trying to find out what branches it runs into. I found 
 > debugging this tedious, and wished for a statement to tell me where it 
 > currently is, something like
 > 
 > 	.print "hello"
 > 
 > Do you think that can/should be added to make?

Yes, I think that's a good idea. (And be sure to do variable expansion
on the target, so you can do .print $(FOO).)

It would also be nice to have .error and .warn... you can do .error
and it has the desired effect, but not by design. :-)

-- 
   - David A. Holland / dholland+netbsd@eecs.harvard.edu