help-make
[Top][All Lists]
Advanced

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

Re: Finding Circular Dependencies


From: Eli Zaretskii
Subject: Re: Finding Circular Dependencies
Date: Mon, 11 Feb 2008 22:44:35 +0200

> From: "Dave Korn" <address@hidden>
> Cc: <address@hidden>
> Date: Mon, 11 Feb 2008 18:36:36 -0000
> 
> On 11 February 2008 04:24, Eli Zaretskii wrote:
> 
> > 
> > Instead of using Perl, how about adding code to Make itself to output
> > the data required for visualization by dotty?
> 
>   I like that idea.  Given that I'm not as familiar with the code internals as
> you probably are, have you got a couple of pointers to help me out with things
> like

Well, those questions are best answered by Paul, but I'll try my best:

> - when to dump the data ?  (I'm thinking maybe sometime just after all the
> makefiles have been remade?)

I think it's before the second call to update_goal_chain in main.c.

> - what's the name of the struct that holds the dependency data and where's the
> head?

I think the variable `goals' (static struct dep variable in main.c) is
it, possibly together with struct file members of each goal.  Each
struct file's `deps' member points to a chain of struct dep objects,
chained through their `next' member.  I think you can generate the
dependency graph by chasing these.  See remake.c, dep.h, and filedef.h
for more details (and perhaps wait for Paul to correct what I messed
up ;-).




reply via email to

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