Tool for debugging makefiles

前端 未结 6 1202
有刺的猬
有刺的猬 2020-12-12 13:08

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

6条回答
  •  感情败类
    2020-12-12 13:21

    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).

提交回复
热议问题