GNU make manual 翻译(五十六)

继续翻译

复制代码
3.7 How `make' Reads a Makefile                        
===============================                        
                        
GNU `make' does its work in two distinct phases.  During the first 
phase it reads all the makefiles, included makefiles, etc. and 
internalizes all the variables and their values, implicit and explicit 
rules, and constructs a dependency graph of all the targets and their 
prerequisites.  During the second phase, `make' uses these internal 
structures to determine what targets will need to be rebuilt and to 
invoke the rules necessary to do so.                        
复制代码
 3.7 make 如何读取一个 makfile

GNU make 完成两个相独立的阶段性工作。

在第一阶段,它读取所有 makefile,还有被包含的 makefile,等等。然后内化所有变量和他们的值,准备好隐式和显式的规则,构造所有目的和它们的前提条件的依赖性关系。

在第二阶段,它使用这些内部结构来决定哪些目的需要被重新构建,来激发相应的规则被执行。

后文待续


本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/09/17/2688291.html,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值