GNU make manual 翻译(十)

继续翻译

   A "rule", then, explains how and when to remake certain files which    
are the targets of the particular rule.  `make' carries out the recipe    
on the prerequisites to create or update the target.  A rule can also    
explain how and when to carry out an action.  *Note Writing Rules:    
Rules.    
    
   A makefile may contain other text besides rules, but a simple    
makefile need only contain rules.  Rules may look somewhat more    
complicated than shown in this template, but all fit the pattern more    
or less.    

规则,解释如何以及何时去重新生成特定的文件。这些文件是特定规则的目的。

make 执行 前提条件中的片段 去创建或改变 目的。

规则也可以解释 如何以及何时去执行一个动作。 *Note Writing Rules(写规则)

在规则之外,一个makefile也可以包含其他文本,但是一个简单的makefile仅仅需要特定的规则。

规则可以看起来比这个模板里的更加复杂,但是都需要符合上述的模式。

后文待续

原文地址:https://www.cnblogs.com/gaojian/p/2681800.html