GNU make manual 翻译(三十一)

继续翻译

3 Writing Makefiles                        
*******************                        
                        
The information that tells `make' how to recompile a system comes from                        
reading a data base called the "makefile".                        
                        
3.1 What Makefiles Contain                        
==========================                        
                        
Makefiles contain five kinds of things: "explicit rules", "implicit 
rules", "variable definitions", "directives", and "comments".  Rules,variables, and directives are described at length in later chapters.                        
                        
   * An "explicit rule" says when and how to remake one or more files,
     called the rule's "targets".  It lists the other files that the 
     targets depend on, called the "prerequisites" of the target, and 
     may also give a recipe to use to create or update the targets.                        
     *Note Writing Rules: Rules.                        

3 制作 makefile

告诉make 如何重新编译一个系统的数据信息被称为 makefile。

3.1 makefile 包含什么

makefile包含五种东西:显式规则,隐式规则,变量定义,指令,注释。

规则,变量和指令将在后面的章节中展开详细论述。

*Note Writing Rules: Rules

后文待续

posted @ 2012-09-14 08:07  健哥的数据花园  阅读(188)  评论(0编辑  收藏  举报