0

我正在尝试更改项目中一个 C 文件中的代码。我可以对项目的makefile使用make实用程序来编译并找出该特定文件中的错误(其余都很好)并重新编译它直到没有错误PS我到目前为止还没有使用make

4

2 回答 2

1

Make will only recompile files that have changed. You can also use make <filename> to compile just that one file without even checking the rest, but that doesn't always work in projects with complex hierarchies of makefiles.

于 2012-09-18T18:21:39.477 回答
0

make每次运行时将每个文件的时间戳与其编译的目标文件的时间戳进行比较。因此,如果您在编译多个文件并运行的 makefile 中有规则make,它将仅编译自上次运行以来已更改的那些文件。

于 2012-09-18T18:25:04.400 回答