GNU make manual 翻译(七十六)

继续翻译

   The RECIPE lines start with a tab character (or the first character 
in the value of the `.RECIPEPREFIX' variable; *note Special Variables::).  The first recipe line may appear on the line after the prerequisites, with a tab character, or may appear on the same line,with a semicolon.  Either way, the effect is the same.  There are other differences in the syntax of recipes.  *Note Writing Recipes in Rules: Recipes.                        
                        
   Because dollar signs are used to start `make' variable references,if you really want a dollar sign in a target or prerequisite you must write two of them, `$$' (*note How to Use Variables: Using Variables.). If you have enabled secondary expansion (*note Secondary Expansion::) and you want a literal dollar sign in the prerequisites list, you must actually write _four_ dollar signs (`$$$$').                        


片段行的开头有一个tab符号(或者 .RECIPEPREFIX 变量所定义的值); *note Special Variables

第一个片段行可以出现在 前提条件后面,开始于 tab 符号,或者出现在 前提条件后面。 

无论哪种,效果都是一样的。这里面还有一些其他的不同。*Note Writing Recipes in Rules: Recipes.


因为美元符号用来表示一个make 的变量参照,所有如果你确实想在目的或者前提条件中使用美元符号的时候,你必须写两个,即$$ (*note How to Use Variables: Using Variables。)。

如果你允许了二次扩展(*note Secondary Expansion::) 并且你需要在前提条件列表中使用美元符号,你必须写四个美元符号($$$$)

后文待续

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