🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #74346

Re: Extensions to GNU-make.

#74346
From: Tom May
Date: Wed, 08 May 1991 01:57
34 lines
1585 bytes
In article <2665@otc.otca.oz> grahamd@otc.otca.oz.au (Graham Dumpleton) writes:


   Following are two proposals for extensions to GNU-make. I don't know how one
   usually get things added to GNU-make so I thought I would post to this group
   and solicit comments. Both proposals are related but are not alternatives as
   both could be implemented.

   [...]

   AIM:

   At the moment, macros defined in the Makefile are converted to environment
   variables which are inherited by commands run as part of a rule. These
   macros are not expanded. For example:

     ONE = 1
     TWO = $(TWO)	[sic]
     THREE = $@

     test:
	     env

     [...]

You could just do

test:
	ONE=$(ONE) TWO=$(TWO) THREE=$(THREE) env

This also makes it obvious that these variables are used by the commands.
--
Tom May
tom@cpac.washington.edu
Technical Details
Message-ID: <TOM.91May7215752@bailey.cpac.washington.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!think.com!rpi!dali.cs.montana.edu!milton!cpac.washington.edu!tom
References: <2665@otc.otca.oz>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,ef20a37c04b2509a
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1991-05-08 12:39:32 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!think.com!rpi!dali.cs.montana.edu!milton!cpac.washington.edu!tom
From: tom@cpac.washington.edu (Tom May)
Newsgroups: gnu.misc.discuss
Subject: Re: Extensions to GNU-make.
Message-ID: <TOM.91May7215752@bailey.cpac.washington.edu>
Date: 8 May 91 01:57:52 GMT
References: <2665@otc.otca.oz>
Sender: news@milton.u.washington.edu (News)
Organization: /u2/guest/tom/.organization
Lines: 34
In-Reply-To: grahamd@otc.otca.oz.au's message of 7 May 91 11:52:17 GMT