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.
复制代码

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

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

 

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

后文待续




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


目录
相关文章
|
Linux C语言
make: gcc:命令未找到
make: gcc:命令未找到
make: gcc:命令未找到
|
6月前
|
编译器 Linux 开发工具
|
3月前
|
前端开发 C语言
gcc动态库升级
gcc动态库升级