绘制由make生成的DAG? [英] Graphing the DAG generated by make?

查看:131
本文介绍了绘制由make生成的DAG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的理解是,当make执行时,它会在内部生成一个DAG,以表示项目中的所有依赖项.有没有办法获得该DAG并绘制图形,例如使用graphviz之类的图形?

My understanding is that when make executes, it generates a DAG internally to represent all the dependencies in the project. Is there a way to get at that DAG and graph it, say using something like graphviz?

我正在Ubuntu 8.04上使用gnu make.

I'm using gnu make on Ubuntu 8.04.

编辑

我只是遇到了称为 mamdag 的这些工具和 mamdot .他们应该可以同时使用nmake和gnu make,但是我似乎找不到找到使gnu make吐出mam文件的选项.

I just ran across these tools called mamdag and mamdot. They're supposed to work with both nmake and gnu make, but I can't seem to find the options to get gnu make to spit out the mam file.

可以在此处下载-这些软件包:

INIT
ast-base
ast-gpl

INIT
ast-base
ast-gpl

刚在AT& T上找到了Glenn Fowler的这篇文章描述了MAM语言和mamdot工具.

Just found this article by Glenn Fowler at AT&T describing the MAM language and the mamdot tool.

似乎我必须修补gnu make才能起作用,尽管我尚不确定100%.

It seems like you have to patch gnu make for this to work, although I'm not 100% certain yet.

也许还有另一种方法?

推荐答案

您应该尝试使用

You should try using Makefile::GraphViz's gvmake utility to create the graphs you want

这篇关于绘制由make生成的DAG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆