继续翻译

`.ONESHELL'
     If `.ONESHELL' is mentioned as a target, then when a target is
     built all lines of the recipe will be given to a single invocationof the shell rather than each line being invoked separately (*noteRecipe Execution: Execution.).`.POSIX'
     If `.POSIX' is mentioned as a target, then the makefile will beparsed and run in POSIX-conforming mode.  This does _not_ meanthat only POSIX-conforming makefiles will be accepted: all advancedGNU `make' features are still available.  Rather, this targetcauses `make' to behave as required by POSIX in those areas where`make''s default behavior differs.In particular, if this target is mentioned then recipes will beinvoked as if the shell had been passed the `-e' flag: the firstfailing command in a recipe will cause the recipe to failimmediately.Any defined implicit rule suffix also counts as a special target if
it appears as a target, and so does the concatenation of two suffixes,
such as `.c.o'.  These targets are suffix rules, an obsolete way of
defining implicit rules (but a way still widely used).  In principle,
any target name could be special in this way if you break it in two and
add both pieces to the suffix list.  In practice, suffixes normally
begin with `.', so these special target names also begin with `.'.
*Note Old-Fashioned Suffix Rules: Suffix Rules.

这里要加一句:make 的 3.81 里面没有 ONESHELL 功能。

`.ONESHELL'
If `.ONESHELL' is mentioned as a target, then when a target is
built all lines of the recipe will be given to a single invocation
of the shell rather than each line being invoked separately (*note
Recipe Execution: Execution.).

如果 ONESHELL 被声明为一个目的,那么当一个目的需通过多行片段的执行的,各行会一起激活一个shell来运行,而不是各行各自激活一个shell。(*note Recipe Execution: Execution.)

.POSIX

如果 .POSIX 被作为目的声明,那么 makefile 将在 POSIX-conforming 模式下解析和运行。

这并不意味着 只有 POSIX-conforming 的makefile 才能够被接受:所有高级的GNU make 功能仍然有效。其实,这个目的会导致在 make 的行为和 POSIX 不同的部分,按照 POSIX 方式运行。

在特定场合,如果这个目的被声明,那么片段会被当作仿佛 -e 标志被传递一般: 第一个失败的命令会导致整个 片段立即失败。

任何定义的隐式规则后缀,如果以 目的的身份出现,也可以称为特殊目的。两个后缀的连接也是如此,例如 .c.o。这些目的是后缀规则,一种定义隐式规则的老式的方式。作为原则,如果你把它分解成两个并且追加它们到后缀列表,此种方式下目的名字可以是特殊的。

在实践中,后缀一般开始于 ., 因此这些特殊的目的名字也开始与.。*Note Old-Fashioned Suffix Rules: Suffix Rules。

后文待续

GNU make manual 翻译( 一百一十三)相关推荐

  1. GNU make manual 翻译( 一百一十九)

    继续翻译 Each target specified must match the target pattern; a warning is issued for each target that d ...

  2. GNU make manual 翻译( 一百一十)

    继续翻译 `.SILENT' If you specify prerequisites for `.SILENT', then `make' will not print the recipe use ...

  3. GNU make manual 翻译( 一百八十三)

    继续翻译 `ifndef VARIABLE-NAME' If the variable VARIABLE-NAME has an empty value, the TEXT-IF-TRUEis eff ...

  4. GNU make manual 翻译( 一百一十四)

    继续翻译 4.10 Multiple Targets in a Rule ===============================A rule with multiple targets is ...

  5. GNU make manual 翻译( 一百一十一)

    继续翻译 `.EXPORT_ALL_VARIABLES' Simply by being mentioned as a target, this tells `make' to export all ...

  6. GNU make manual 翻译( 一百六十三)

    继续翻译 6.6 Appending More Text to Variables ====================================Often it is useful to ...

  7. GNU make manual 翻译(七十三)

    继续翻译 4 Writing Rules *************** A "rule" appears in the makefile and says when and ho ...

  8. GNU make manual 翻译(四十三)

    继续翻译 Another such occasion is when you want to generate prerequisites from source files automaticall ...

  9. GNU make manual 翻译(六十三)

    继续翻译 After the first expansion phase the prerequisites list of the 'myfile' target will be `onefile' ...

最新文章

  1. C语言中regex_error,为什么这个C 11 std :: regex示例抛出一个regex_error异常?
  2. Windows 下用reg 文件将exe 写入启动项
  3. python保存两位小数的几种方法,python2保留小数
  4. 【数据结构总结】第七章 查找
  5. JAVA08 多态
  6. Mysql笔记——DQL
  7. python echarts接口_Python之图表Pyecharts
  8. c++中 vs 简单的对txt文件读写
  9. 实时网速怎么看快慢_iQOO怎么显示网速 网络状态实时查看
  10. 淮海工学院计算机宿舍住b几,淮海工学院操作系统期末考试B卷2011
  11. 简单的理解unicode和utf-8的关系
  12. 【初学python】用python做一个简单的超市收银台付款系统
  13. 触控板失灵的解决方法(synaptics驱动)
  14. 微信聊天记录内的文件如何实现自动同步备份?
  15. SAP JCo 功能
  16. 用JavaScript判断一个数是否是素数
  17. Google退出中国损失的不止是搜索机会
  18. 上海户口申请条件类比分析
  19. 领导驾驶舱大数据平台的实施流程
  20. (转)在日企面试如何主动给自己加分

热门文章

  1. 漫画:原来,我是备胎!!!
  2. 因肠道疾病经常上厕所,她被亚马逊解雇了
  3. 好听!前端竟然自己会变调! | 每日趣闻
  4. 45 岁,2 万亿身价,苹果的人生才刚刚开始
  5. 乐乐茶完成近2亿元Pre-A轮融资,祥峰投资领投
  6. Fundebug后端Java异常监控插件更新至0.2.0,支持Spring及Maven
  7. Wireshark默认不抓取本地包的解决方式
  8. Java生成XML文件与XML文件的写入
  9. Chrome插件开发进阶
  10. AudioStreamer电话打进时崩溃