🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #869

Re: Variable redefinition using += in GNU Make...

#869
From: David Karr
Date: Wed, 07 Oct 1992 16:55
32 lines
1893 bytes
In article <9210052258.AA01624@pepper.ncd.com> mellon@pepper.UUCP (Ted Lemon) writes:

> I'm trying to use GNU Make on some of our makefiles internally, but
> I find that we use a feature present in 4.3-Tahoe and SunOS make,
> which is that you can add stuff to the end of a variable definition by
> using a += operator; e.g.,
> 
> FOO = bar
> FOO += baz
> 
> Would result in foo being set to ``bar baz''.   I notice that this
> functionality is implemented differently in GNU make - a := operator
> has been introduced which evaluates the RHS before assigning to the
> LHS (I'm not entirely clear on how this works, but I'm sure it will be
> evident when I spend a little time playing with it).
> 
> The problem is this: I am now stuck with having to choose which
> implementation to support - GNU Make doesn't support the += construct,
> and SunOS/BSD Make doesn't support the := construct.   Does anybody
> have any plans to do anything about this, or am I putting my foot in a
> religious debate by bringing this up?
> 
> 			       _MelloN_

Seems pretty clear to me.  You can easily port Gnu to any other system, but
you can't port Sun Make to any other system.  I find Gnu make is much more
functional than Sun's make.
--
David M. Karr
Sierra Geophysics, Inc.
ARPA: dkarr@sierra.com, UUNET: uunet!sgihbtn!dkarr
Phone: (206) 822-5200 (343)
Technical Details
Message-ID: <DKARR.92Oct7085539@dopey.sierra.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dopey.sierra.COM!dkarr
References: dkarr@dopey.sierra.COM (David Karr)

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dopey.sierra.COM!dkarr
From: dkarr@dopey.sierra.COM (David Karr)
Subject: Re: Variable redefinition using += in GNU Make...
Message-ID: <DKARR.92Oct7085539@dopey.sierra.com>
Sender: gnulists@ai.mit.edu
Organization: Sierra Geophysics, Inc.
References: dkarr@dopey.sierra.COM (David Karr)
Distribution: gnu
Date: Wed, 7 Oct 1992 16:55:39 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 33