makefile - make vs $(MAKE) for submakes in makefile - 有什么区别?

标签 makefile gnu-make

在 makefile 中使用 make$(MAKE) 有什么影响,即 submakes?

有没有一些makeflags那些/没有被传播?

最佳答案

一件事是如果使 sees that the recipe contains the MAKE variable reference ,它知道配方是一个 submake,它会将命令正确配置为 submake。这对于并行构建、终端管理等很重要。

肯定有一些标志不会传播到 submake,但大多数都是。您已经指出了对此进行描述的文档。

关于makefile - make vs $(MAKE) for submakes in makefile - 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41833004/

相关文章:

linux - Makefile:make 期间出错

windows - Makefile 错误 make (e=2) : The system cannot find the file specified

linux - 如何在 Linux 中的 makefile 中创建指向目录的链接?

c - makefile,编译卡在第一个文件上的源列表

c++ - Makefile 在变量中不获取依赖项

c++ - 制作 : circular dependency dropped c++

openssl - 支持 FIPS 的 OpenSSL 和 `make depend`

makefile - 判断Makefile是否用gmake执行

makefile - 什么 makefile 延迟评估规则控制这种行为?

makefile - GNU Make 支持文件名中的 '%' 吗?