当前位置: 动力学知识库 > 问答 > 编程问答 >

makefile - Why is GNU make adding this 'rm' command at the end?

问题描述:

This question already has an answer here:

  • Makefile removes object files for no reason

    2 answers

网友答案:

The object files for the test binaries are intermediate products, because the test binaries are created using implicit rules, as opposed to the libft.a archive, which is created with an explicit rule.

Because they're intermediate products of a chain of pattern rules, they're deleted at the end of the build.

The Make manual page that talks about this is Chains of Implicit Rules.

分享给朋友:
您可能感兴趣的文章:
随机阅读: