Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2002 22:05:27 -0700
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:  <20020601050549.GB3081@lizzy.catnook.com>
In-Reply-To: <20020601044603.GD91922@dan.emsphone.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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 31, 2002 at 11:46:03PM -0500, Dan Nelson wrote:
> That doesn't fix Tru64 make, which uses $> like BSD make, or Solaris
> make, which has neither.  In fact, based on this sample, I suggest you
> submit a patch to the gmake people adding $>, which obviously is the
> defacto standard :)

That's a good idea, thanks. I just sent an e-mail coining the concept to
help-make@gnu.org.

> 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.

-- 
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?20020601050549.GB3081>