GNU make manual 翻译( 一百一十三)
继续翻译
`.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 翻译( 一百一十三)相关推荐
- GNU make manual 翻译( 一百一十九)
继续翻译 Each target specified must match the target pattern; a warning is issued for each target that d ...
- GNU make manual 翻译( 一百一十)
继续翻译 `.SILENT' If you specify prerequisites for `.SILENT', then `make' will not print the recipe use ...
- GNU make manual 翻译( 一百八十三)
继续翻译 `ifndef VARIABLE-NAME' If the variable VARIABLE-NAME has an empty value, the TEXT-IF-TRUEis eff ...
- GNU make manual 翻译( 一百一十四)
继续翻译 4.10 Multiple Targets in a Rule ===============================A rule with multiple targets is ...
- GNU make manual 翻译( 一百一十一)
继续翻译 `.EXPORT_ALL_VARIABLES' Simply by being mentioned as a target, this tells `make' to export all ...
- GNU make manual 翻译( 一百六十三)
继续翻译 6.6 Appending More Text to Variables ====================================Often it is useful to ...
- GNU make manual 翻译(七十三)
继续翻译 4 Writing Rules *************** A "rule" appears in the makefile and says when and ho ...
- GNU make manual 翻译(四十三)
继续翻译 Another such occasion is when you want to generate prerequisites from source files automaticall ...
- GNU make manual 翻译(六十三)
继续翻译 After the first expansion phase the prerequisites list of the 'myfile' target will be `onefile' ...
最新文章
- C语言中regex_error,为什么这个C 11 std :: regex示例抛出一个regex_error异常?
- Windows 下用reg 文件将exe 写入启动项
- python保存两位小数的几种方法,python2保留小数
- 【数据结构总结】第七章 查找
- JAVA08 多态
- Mysql笔记——DQL
- python echarts接口_Python之图表Pyecharts
- c++中 vs 简单的对txt文件读写
- 实时网速怎么看快慢_iQOO怎么显示网速 网络状态实时查看
- 淮海工学院计算机宿舍住b几,淮海工学院操作系统期末考试B卷2011
- 简单的理解unicode和utf-8的关系
- 【初学python】用python做一个简单的超市收银台付款系统
- 触控板失灵的解决方法(synaptics驱动)
- 微信聊天记录内的文件如何实现自动同步备份?
- SAP JCo 功能
- 用JavaScript判断一个数是否是素数
- Google退出中国损失的不止是搜索机会
- 上海户口申请条件类比分析
- 领导驾驶舱大数据平台的实施流程
- (转)在日企面试如何主动给自己加分