From owner-freebsd-questions@FreeBSD.ORG Wed Jul 13 14:56:52 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 05E1E16A41C for ; Wed, 13 Jul 2005 14:56:52 +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 60E3D43D48 for ; Wed, 13 Jul 2005 14:56:51 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 19791 invoked by uid 0); 13 Jul 2005 14:56:49 -0000 Received: from user-69-73-60-132.knology.net (HELO Grumpy.DynDNS.org) (69.73.60.132) by smtp1.knology.net with SMTP; 13 Jul 2005 14:56:49 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 76D6360DB; Wed, 13 Jul 2005 09:56:49 -0500 (CDT) Date: Wed, 13 Jul 2005 09:56:49 -0500 From: David Kelly To: questions@freebsd.org Message-ID: <20050713145649.GA47667@Grumpy.DynDNS.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: 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 14:56:52 -0000 BSD make will automatically and silently include .depend if one exists in the same directory as the Makefile. Otherwise it won't complain if .depend is missing. In GNU Make one must explicitly "include .depend", but if .depend does not exist GNU Make aborts. And can't .depend as a target dependency partly because the target won't be built until all the includes are complete. 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?" -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.