From owner-freebsd-questions@FreeBSD.ORG Wed Mar 16 22:58:54 2005 Return-Path: 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 7B0D816A4CE for ; Wed, 16 Mar 2005 22:58:54 +0000 (GMT) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with SMTP id CAD1443D4C for ; Wed, 16 Mar 2005 22:58:53 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 26386 invoked by uid 0); 16 Mar 2005 22:58:51 -0000 Received: from user-69-73-60-132.knology.net (HELO Grumpy.DynDNS.org) (69.73.60.132) by smtp7.knology.net with SMTP; 16 Mar 2005 22:58:51 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 7EEB864B7; Wed, 16 Mar 2005 16:58:51 -0600 (CST) Date: Wed, 16 Mar 2005 16:58:51 -0600 From: David Kelly To: Dan Nelson Message-ID: <20050316225851.GA43966@Grumpy.DynDNS.org> References: <20050316203249.GA43323@Grumpy.DynDNS.org> <20050316205017.GC27170@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050316205017.GC27170@dan.emsphone.com> User-Agent: Mutt/1.4.2.1i cc: FreeBSD-Questions@freebsd.org Subject: Re: Makefiles compatible with both BSD and GNU make? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 22:58:54 -0000 On Wed, Mar 16, 2005 at 02:50:17PM -0600, Dan Nelson wrote: > > FreeBSD's make understands the gnu-style include syntax with no leading > dot, even though it's undocumented (grep for SYSVINCLUDE in the > source). Automake is the usual way around compatibility issues; it has > its own conditional syntax that it expands out when it generates the > Makefile, and will create the appropriate dependency lines. Sure enough. BSD make requires quotes around the filename in .include ".depend" but if one removes the leading dot on "include" it can't find .depend if the filename is still quoted. This works in BSD make altho its not doing anything that isn't automatically done: .include ".depend" Above is apparently the same as this in GNU make and accepted by BSD: include .depend This does not work in BSD as it seems to be trying to find ".depend" with quotes, which doesn't exist: include ".depend" -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.