Hi all, I need to get a tool or something which gives the dependency graph by looking at a makefile... even if not a dependency graph,.... it should deduce some information... do you guys know any such tool, or something.. please help..
If you had simply read "man make", you would have found "-p".
HI Dirk,
I actually used make -p, but.... u know, the o/p is aa whole dump of
database,.... which is not easily comprehendable.... or say how to use
it??, i.e. how to look for useful info in it..??
Actually I have to find out the dependencies.. and main goal is to find
out those files which are not dependent on any other files...like
that.....
Dirk Heinrichs wrote:
Quote:
kunal kishor wrote:
Quote:
Hi all, I need to get a tool or something which gives the dependency graph by looking at a makefile... even if not a dependency graph,.... it should deduce some information... do you guys know any such tool, or something.. please help..
If you had simply read "man make", you would have found "-p". HTH... Dirk
I had what I thought was a difficult makefile question a couple weeks
ago trying to create optional dependancies. I found a forum at CM
Crossroads called Ask Mr. Make which it turns out is moderated by John
Graham-Cumming (creator of gnumake) No more problems for me
Mr. Make can be found at -- http://www.cmcrossroads.com/compone...id,180/board,92
kunal I had what I thought was a difficult makefile question a couple weeks ago trying to create optional dependancies. I found a forum at CM Crossroads called Ask Mr. Make which it turns out is moderated by John Graham-Cumming (creator of gnumake) No more problems for me Mr. Make can be found at --
John G-C is a great guy, brilliant and helpful, but he's no more the
creator of gnu make than I am. Here's the top of the AUTHORS file:
GNU make development up to version 3.75 by:
Roland McGrath <roland@gnu.org>
Development starting with GNU make 3.76 by:
Paul D. Smith <psmith@gnu.org>
Additional development starting with GNU make 3.81 by:
Boris Kolpackov <boris@kolpackov.net>
GNU Make User's Manual
Written by:
Richard M. Stallman <rms@gnu.org>
HI Dirk, I actually used make -p, but.... u know, the o/p is aa whole dump of database,.... which is not easily comprehendable.... or say how to use it??, i.e. how to look for useful info in it..??
Use awk/grep or some perl magic to filter out the relevant information.
Quote:
Actually I have to find out the dependencies.. and main goal is to find out those files which are not dependent on any other files...like that.....
The files which don't have dependencies can be found by something like:
make -p 2>&1|grep ":$" |grep -v "^#"|grep -v "^\."
The first grep looks for lines ending with ":", the second one filters out
the comments, and the last one filters out the suffix rules. You may want
to refine the filter further.
HI Dirk, I actually used make -p, but.... u know, the o/p is aa whole dump of database,.... which is not easily comprehendable.... or say how to use it??, i.e. how to look for useful info in it..??
Use awk/grep or some perl magic to filter out the relevant information.
Quote:
Actually I have to find out the dependencies.. and main goal is to find out those files which are not dependent on any other files...like that.....
The files which don't have dependencies can be found by something like: make -p 2>&1|grep ":$" |grep -v "^#"|grep -v "^\." The first grep looks for lines ending with ":", the second one filters out the comments, and the last one filters out the suffix rules. You may want to refine the filter further. HTH... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com Hambornerstraße 55 | Web: http://www.capgemini.com D-40472 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
That makes sense. GraphViz is the weapon of choice for visualizing these
kinds of things. Extra bonus points if someone has already written the logic
for massaging the data into GraphViz definitions, like in this case.
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service