Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有一种标准方法来指示基于 Makefile 的 C/C++ 项目中的依赖关系。我应该在安装或自述文件中提及它吗?
对于我打开的大多数“.tar”文件,它们在 INSTALL 或 README 中记录了依赖关系。似乎没有标准的方法来处理这个问题。我见过的最好的 makefile 通常包含有关代码依赖关系的注释信息,以及构建过程中的历史问题。
在许多其他情况下,makefile 是由 Automake、cmake、premake、python、perl 等程序自动生成的......
对于普通人来说,自动生成的 makefile 往往很难阅读。手工制作的 makefile 往往更容易让我们凡人阅读。