From owner-freebsd-questions@FreeBSD.ORG Wed Sep 21 06:52:52 2005 Return-Path: X-Original-To: freebsd-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 414AD16A420; Wed, 21 Sep 2005 06:52:52 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-3.dlr.de (smtp-3.dlr.de [195.37.61.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id A47BC43D48; Wed, 21 Sep 2005 06:52:51 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-3.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Wed, 21 Sep 2005 08:52:49 +0200 Date: Wed, 21 Sep 2005 08:52:52 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: Harlan Stenn In-Reply-To: <20050921044156.8863F39AC5@ntp1.ntp.isc.org> Message-ID: <20050921085018.C754@beagle.kn.op.dlr.de> References: <20050921044156.8863F39AC5@ntp1.ntp.isc.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 21 Sep 2005 06:52:49.0770 (UTC) FILETIME=[14B5B4A0:01C5BE79] Cc: Giorgos Keramidas , freebsd-questions@freebsd.org Subject: Re: gmake/make dependency problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 06:52:52 -0000 Harlan, On Wed, 21 Sep 2005, Harlan Stenn wrote: HS>It is ugly to add $(srcdir) to the targets (and perhaps dependencies), HS>but that may have to happen. For the 'foreseeable future' - yes. HS>If I say: HS> HS>srcdir=wherever HS>VPATH: $(srcdir) HS> HS>a: b HS> HS>b: c HS> cd $(srcdir) && script c > b HS> HS>then it is Strange that make will correctly see that for 'a', the HS>dependency is 'b' and 'b' is found in $(srcdir)/b, yet for the 2nd HS>rule, 'b' is expected to be in the current directory. Are you sure that make sees a? Try make -dm and you'll see that it doesn't see a, nor b for the seconds rule. harti