help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dependencies in other folders


From: Philip Guenther
Subject: Re: dependencies in other folders
Date: Sun, 31 Aug 2008 15:30:58 -0600

On Sun, Aug 31, 2008 at 9:01 AM, Martin d Anjou <address@hidden> wrote:
>> make: Circular foo.c <- foo.c dependency dropped.
>> make: `../b/foo.c' is up to date.
>>
>> Is it possible to solve it using VPATH?
>
> I don't think so. VPATH is to find prerequisites, not targets.

Sorry, let me clarify: right now, Eduardo's makefile contains rules
for copying files from other directories to the current directory.  It
may be possible to simply remove those rules and instead specify the
other directories via VPATH or vpath.  If the local copies of those
files are just used as prerequisites for other targets whose rules
only reference them via automatic variables such as $< or $?, then
that'll Just Work.  If they are used indirectly or are referenced by
name instead of via automatic variables then that won't work.  That's
information that Eduardo didn't include in his query, so we can't tell
whether it'll work or not.


Philip Guenther




reply via email to

[Prev in Thread] Current Thread [Next in Thread]