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:命令未找到
|
编译器 Linux 开发工具
|
6月前
|
存储 编译器 C语言
深入理解GCC 和 G++ 编译器
GCC 和 G++ 是 GNU 工具链中的核心编译器,支持 C 和 C++ 程序开发。本文详细介绍其编译流程、常用选项及动态链接与静态链接的区别。编译过程分为预处理、编译、汇编和链接四个阶段,每个阶段有特定任务和命令选项。常用选项如 `-E`、`-S`、`-c` 和 `-o` 分别用于预处理、生成汇编代码、生成目标文件和指定输出文件。动态链接节省空间且易于更新,但依赖运行时库;静态链接独立高效,但文件较大且更新困难。合理选择优化选项(如 `-O0` 至 `-O3`)可提升程序性能。掌握这些知识有助于开发者更高效地编写、调试和优化代码。
292 23
深入理解GCC 和 G++ 编译器