调试makefile的工具 [英] Tool for debugging makefiles

查看:119
本文介绍了调试makefile的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很大的遗留代码库与非常复杂的makefile,有很多变量。有时我需要改变它们,我发现很难弄清楚为什么这个变化不能像我所期望的那样工作。我想找到的是一个基本上完成make过程的逐步调试的工具,我将在其中给出一个目录,我可以看到不同变量在不同点的值处理。没有一个调试标志,似乎告诉我我想要什么,虽然可能我错过了一些东西。有没有人知道这样做的方式?

解决方案

你是否看过运行 make -n make -np ,biggie make -nd

您是否使用最新版本的 gmake



调试Makefile他们出色的书使用GNU Make管理项目( Amazon Link )。


I have a large legacy codebase with very complicated makefiles, with lots of variables. Sometimes I need to change them, and I find that it's very difficult to figure out why the change isn't working the way I expect. What I'd like to find is a tool that basically does step-through-debugging of the "make" process, where I would give it a directory, and I would be able to see the value of different variables at different points in the process. None of the debug flags to make seem to show me what I want, although it's possible that I'm missing something. Does anyone know of a way to do this?

解决方案

Have you been looking at the output from running make -n and make -np, and the biggie make -nd?

Are you using a fairly recent version of gmake?

Have you looked at the free chapter on Debugging Makefiles available on O'Reilly's site for their excellent book "Managing Projects with GNU Make" (Amazon Link).

这篇关于调试makefile的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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