Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jun 2002 00:51:59 -0701
From:      Jos Backus <jos@catnook.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        Julian Elischer <julian@elischer.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Improving GNU make compatibility in BSD make (+ patch)
Message-ID:  <20020601075221.GB10437@lizzy.catnook.com>
In-Reply-To: <20020601050549.GB3081@lizzy.catnook.com>
References:  <20020601015343.GA1132@lizzy.catnook.com> <Pine.BSF.4.21.0205311855390.29361-100000@InterJet.elischer.org> <20020601025457.GA1457@lizzy.catnook.com> <20020601044603.GD91922@dan.emsphone.com> <20020601050549.GB3081@lizzy.catnook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 31, 2002 at 10:05:27PM -0700, Jos Backus wrote:
> That's a good idea, thanks. I just sent an e-mail coining the concept to
> help-make@gnu.org.

Fyi, I just sent a patch to to help-make; who knows Paul may accept it.

--- expand.c.orig	Mon Jun 19 13:23:35 2000
+++ expand.c	Sat Jun  1 00:42:11 2002
@@ -373,6 +373,11 @@
 
 	  /* A $ followed by a random char is a variable reference:
 	     $a is equivalent to $(a).  */
+
+	  /* Treat $> as $^ for compatibility with BSD make. */ 
+	  if (*p == '>')
+	    *p = '^';
+
 	  {
 	    /* We could do the expanding here, but this way
 	       avoids code repetition at a small performance cost.  */

-- 
Jos Backus                 _/  _/_/_/        Santa Clara, CA
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
jos@catnook.com     _/_/   _/_/_/            use Std::Disclaimer;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020601075221.GB10437>