On Sun, Aug 31, 2008 at 9:01 AM, Martin d Anjou <[EMAIL PROTECTED]> 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 _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
