From owner-freebsd-questions@FreeBSD.ORG Wed Jul 13 21:01:40 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 189A216A41C for ; Wed, 13 Jul 2005 21:01:40 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BCDF43D46 for ; Wed, 13 Jul 2005 21:01:39 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j6DL1YGC056449; Wed, 13 Jul 2005 16:01:34 -0500 (CDT) (envelope-from dan) Date: Wed, 13 Jul 2005 16:01:34 -0500 From: Dan Nelson To: David Kelly Message-ID: <20050713210134.GB75904@dan.emsphone.com> References: <20050713145649.GA47667@Grumpy.DynDNS.org> <42D53D89.20100@dial.pipex.com> <20050713182621.GA48396@Grumpy.DynDNS.org> <20050713190807.GA75904@dan.emsphone.com> <20050713204130.GA48891@Grumpy.DynDNS.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050713204130.GA48891@Grumpy.DynDNS.org> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: questions@freebsd.org, Alex Zbyslaw 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 21:01:40 -0000 In the last episode (Jul 13), David Kelly said: > On Wed, Jul 13, 2005 at 02:08:07PM -0500, Dan Nelson wrote: > > I believe "-include .depend" will tell gmake to try to include the > > file but not complain if it's not there. > > Yes! That does work! > > OTOH it breaks in BSD Make. :-( Automake's method of handling dependencies is interesting; it generates a dependency file for each object file as part of the .c.o rule. It includes them all at the bottom of the Makefile and generates dummy entries during the ./configure stage to placate gmake. You could do something similar with the one-big-depend style by including a dummy .depend file in your tarball with a date in the past. The first Make run will include the dummy .depend and force a rebuild because it's out of date. Since the dependency file isn't needed the first time you generate object files, that's okay. -- Dan Nelson dnelson@allantgroup.com