子目录中的递归制作 [英] Recursive make in subdirectories

查看:157
本文介绍了子目录中的递归制作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Makefile中订购 make 命令在所有子目录 make 中递归执行(在Makefile in the子目录)?

How can I order make command in the Makefile to execute recursively in all subdirectories make commands (defined in the Makefile in the subdirectories)?

推荐答案


  1. 阅读 递归使用Make GNU Make手册章。

  2. 了解Peter Miller的 递归使用有害的 文章。

  3. ...

  4. 利润!!!

  1. Read Recursive Use of Make chapter of GNU Make manual.
  2. Learn Peter Miller's Recursive Make Considered Harmful article.
  3. ...
  4. PROFIT!!!






PS 我的答案的代码片段与其他相关的问题可以用作粗略的近似值。


P.S. A code snippet from my answer to a different yet related question could be used as a rough approximation.

这篇关于子目录中的递归制作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆