From owner-freebsd-hackers Fri May 31 22:28:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 6D1F437B404 for ; Fri, 31 May 2002 22:28:32 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.3) id g515SUq0080471; Sat, 1 Jun 2002 00:28:30 -0500 (CDT) (envelope-from dan) Date: Sat, 1 Jun 2002 00:28:30 -0500 From: Dan Nelson To: Julian Elischer , freebsd-hackers@FreeBSD.ORG Subject: Re: Improving GNU make compatibility in BSD make (+ patch) Message-ID: <20020601052830.GE91922@dan.emsphone.com> 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 X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error 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 In the last episode (May 31), Jos Backus said: > On Fri, May 31, 2002 at 11:46:03PM -0500, Dan Nelson wrote: > > Automake avoids the issue entirely by simply listing the dependencies > > itself, so > > > > > envuidgid: envuidgid.o > > > $(CC) $(LDFLAGS) -o $@ $^ > > > > becomes > > > > > $(CC) $(LDFLAGS) -o $@ envuidgid.o > > Ugly but portable, I guess. It would be better to be able to use pattern rules > instead; less duplication. It ends up creating a make variable for each target containing the object files (envuidguid_OBJECTS=envuidgid.o for example) and uses that on the dependency and link lines, so it's not too bad. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message