From owner-freebsd-questions@FreeBSD.ORG Wed Jul 13 18:26:23 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BE3816A41C for ; Wed, 13 Jul 2005 18:26:23 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with SMTP id 0F38043D46 for ; Wed, 13 Jul 2005 18:26:22 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 4404 invoked by uid 0); 13 Jul 2005 18:26:21 -0000 Received: from user-69-73-60-132.knology.net (HELO Grumpy.DynDNS.org) (69.73.60.132) by smtp7.knology.net with SMTP; 13 Jul 2005 18:26:21 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 2E3AB60DB; Wed, 13 Jul 2005 13:26:21 -0500 (CDT) Date: Wed, 13 Jul 2005 13:26:21 -0500 From: David Kelly To: Alex Zbyslaw Message-ID: <20050713182621.GA48396@Grumpy.DynDNS.org> References: <20050713145649.GA47667@Grumpy.DynDNS.org> <42D53D89.20100@dial.pipex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42D53D89.20100@dial.pipex.com> User-Agent: Mutt/1.4.2.1i Cc: questions@freebsd.org Subject: Re: Make GNU Make behave like BSD Make? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 18:26:23 -0000 On Wed, Jul 13, 2005 at 05:12:57PM +0100, Alex Zbyslaw wrote: > David Kelly wrote: > > >So my question is "Is there a way to make GNU Make handle .depend the > >BSD way? And is it possible for the same Makefile to run the same way on > >either BSD or GNU Makes?" > > However, you could just try standardising on one make or the other. > gmake will build on FreeBSD and (unfortunately) may be the easiest way > to go. Yes, but the problem is that I want to make GNU Make behave the BSD way. Specifically my application is an embedded AVR and it really needs to build fairly painlessly under the WinAVR environment where GNU Make is painlessly bundled. Yet I also often use FreeBSD and ports/devel/avr*. I do have gmake installed on FreeBSD so that isn't an issue. Another way to say what I'm trying to do is that gmake barfs if "include .depend" is specified but .depend does not exist. The result is "make depend" is not a solution for creating .depend. Its not a problem for *me* to "touch .depend" the first time. OTOH it stymied my boss. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.