且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

GNU make manual 翻译( 一百二十七)

更新时间:2022-09-21 17:52:21

继续翻译

GNU make manual 翻译( 一百二十七)
5 Writing Recipes in Rules
**************************

The recipe of a rule consists of one or more shell command lines to be
executed, one at a time, in the order they appear.  Typically, the
result of executing these commands is that the target of the rule is
brought up to date.

   Users use many different shell programs, but recipes in makefiles are
always interpreted by `/bin/sh' unless the makefile specifies
otherwise.  *Note Recipe Execution: Execution.
GNU make manual 翻译( 一百二十七)

5 在规则里写片段
**************************

一个规则的片段有一行或多行地shell 命令组成。按照它们的顺序一次执行移行。典型地,执行这些命令的结果是,此规则的目的被更新为最新的状态。

 

 用户可以使用不同的shell  程序,但是在makefile的片段里,却总是被认为是 /bin/sh, 除非makefile特别指定了其它的。*Note Recipe Execution: Execution

后文待续




本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/09/27/2705246.html,如需转载请自行联系原作者