> From: "Dave Korn" <[EMAIL PROTECTED]> > Cc: <[email protected]> > 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 ;-). _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
