Date: Wed, 13 Jul 2005 16:01:34 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: David Kelly <dkelly@hiwaay.net> Cc: questions@freebsd.org, Alex Zbyslaw <xfb52@dial.pipex.com> Subject: Re: Make GNU Make behave like BSD Make? Message-ID: <20050713210134.GB75904@dan.emsphone.com> In-Reply-To: <20050713204130.GA48891@Grumpy.DynDNS.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050713210134.GB75904>