From owner-freebsd-questions@FreeBSD.ORG Wed Sep 21 04:41:57 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 42BAE16A41F; Wed, 21 Sep 2005 04:41:57 +0000 (GMT) (envelope-from stenn@ntp.isc.org) Received: from ntp1.ntp.isc.org (ntp1.ntp.isc.org [204.152.184.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECECF43D49; Wed, 21 Sep 2005 04:41:56 +0000 (GMT) (envelope-from stenn@ntp.isc.org) Received: from localhost (localhost [127.0.0.1]) by ntp1.ntp.isc.org (Postfix) with ESMTP id 8863F39AC5; Wed, 21 Sep 2005 04:41:56 +0000 (UTC) (envelope-from stenn@ntp1.isc.org) Received: from ntp1.ntp.isc.org ([127.0.0.1]) by localhost (ntp1.isc.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36339-01; Wed, 21 Sep 2005 04:41:55 +0000 (UTC) Received: from ntp1.isc.org (localhost [127.0.0.1]) by ntp1.ntp.isc.org (Postfix) with ESMTP; Wed, 21 Sep 2005 04:41:55 +0000 (UTC) (envelope-from stenn@ntp1.isc.org) To: Harti Brandt In-Reply-To: Message from Harti Brandt of "Tue, 20 Sep 2005 11:42:05 +0200." <20050920111521.D754@beagle.kn.op.dlr.de> X-Mailer: MH-E 7.4.2; nmh 1.0.4; XEmacs 21.4 (patch 14) Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: text/plain; charset=US-ASCII Date: Wed, 21 Sep 2005 04:41:55 +0000 From: Harlan Stenn X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on ntp1.isc.org Message-Id: <20050921044156.8863F39AC5@ntp1.ntp.isc.org> Cc: Harlan Stenn , 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 04:41:57 -0000 Harti, It is ugly to add $(srcdir) to the targets (and perhaps dependencies), but that may have to happen. If I say: srcdir=wherever VPATH: $(srcdir) a: b b: c cd $(srcdir) && script c > b then it is Strange that make will correctly see that for 'a', the dependency is 'b' and 'b' is found in $(srcdir)/b, yet for the 2nd rule, 'b' is expected to be in the current directory. H