From owner-freebsd-hackers Sat Jun 1 0:52: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (adsl-66.218.45.239.dslextreme.com [66.218.45.239]) by hub.freebsd.org (Postfix) with SMTP id CAE6737B405 for ; Sat, 1 Jun 2002 00:52:00 -0700 (PDT) Received: (qmail 10455 invoked by uid 1000); 1 Jun 2002 07:52:21 -0000 Date: Sat, 1 Jun 2002 00:51:59 -0701 From: Jos Backus To: Dan Nelson Cc: Julian Elischer , freebsd-hackers@FreeBSD.ORG Subject: Re: Improving GNU make compatibility in BSD make (+ patch) Message-ID: <20020601075221.GB10437@lizzy.catnook.com> Reply-To: jos@catnook.com Mail-Followup-To: Dan Nelson , Julian Elischer , freebsd-hackers@FreeBSD.ORG References: <20020601015343.GA1132@lizzy.catnook.com> <20020601025457.GA1457@lizzy.catnook.com> <20020601044603.GD91922@dan.emsphone.com> <20020601050549.GB3081@lizzy.catnook.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020601050549.GB3081@lizzy.catnook.com> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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