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,等等。然后内化所有变量和他们的值,准备好隐式和显式的规则,构造所有目的和它们的前提条件的依赖性关系。

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

后文待续

你可能感兴趣的:(Make)