GNU make manual 翻译(七十五)

继续翻译

4.2 Rule Syntax                        
===============                        
                        
In general, a rule looks like this:                        
                        
     TARGETS : PREREQUISITES                        
             RECIPE                        
             ...                        
                        
or like this:                        
                        
     TARGETS : PREREQUISITES ; RECIPE                        
             RECIPE                        
             ...                        
                        
   The TARGETS are file names, separated by spaces.  Wildcard characters may be used (*note Using Wildcard Characters in File Names: Wildcards.) and a name of the form `A(M)' represents member M in  archive file A (*note Archive Members as Targets: Archive Members.). 
Usually there
is only one target per rule, but occasionally there is a reason to have more (*note Multiple Targets in a Rule: Multiple Targets.).

4.2 规则 语法 
===============
通常,一个规则长得这样:

TARGETS : PREREQUISITES
RECIPE
...

或者这样:

TARGETS : PREREQUISITES ; RECIPE
RECIPE
...

目标是文件名,用空格分隔。可以使用通配符 (*note Using Wildcard Characters in File Names:
Wildcards.) ;而且 形如 A(M) 的名字,表示归档文件A的 成员M (*note Archive Members as Targets: Archive Members.)。


通常每个规则仅有一个目的,但是某些场合,也有多个目的的 (*note Multiple Targets in a Rule: Multiple Targets.)。

后文待续

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