Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2005 08:52:52 +0200 (CEST)
From:      Harti Brandt <hartmut.brandt@dlr.de>
To:        Harlan Stenn <stenn@ntp.isc.org>
Cc:        Giorgos Keramidas <keramida@freebsd.org>, freebsd-questions@freebsd.org
Subject:   Re: gmake/make dependency problem 
Message-ID:  <20050921085018.C754@beagle.kn.op.dlr.de>
In-Reply-To: <20050921044156.8863F39AC5@ntp1.ntp.isc.org>
References:  <20050921044156.8863F39AC5@ntp1.ntp.isc.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050921085018.C754>