在 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/