GNU make manual 翻译( 一百零九)
继续翻译
`.LOW_RESOLUTION_TIME' If you specify prerequisites for `.LOW_RESOLUTION_TIME', `make' assumes that these files are created by commands that generate low resolution time stamps. The recipe for the `.LOW_RESOLUTION_TIME' target are ignored.The high resolution file time stamps of many modern file systems lessen the chance of `make' incorrectly concluding that a file is up to date. Unfortunately, some hosts do not provide a way to set a high resolution file time stamp, so commands like `cp -p' that explicitly set a file's time stamp must discard its subsecond part.If a file is created by such a command, you should list it as a prerequisite of `.LOW_RESOLUTION_TIME' so that `make' does not mistakenly conclude that the file is out of date. For example:.LOW_RESOLUTION_TIME: dstdst: srccp -p src dstSince `cp -p' discards the subsecond part of `src''s time stamp, `dst' is typically slightly older than `src' even when it is up to date. The `.LOW_RESOLUTION_TIME' line causes `make' to consider `dst' to be up to date if its time stamp is at the start of the same second that `src''s time stamp is in.Due to a limitation of the archive format, archive member time stamps are always low resolution. You need not list archive members as prerequisites of `.LOW_RESOLUTION_TIME', as `make' does this automatically.
如果你为 .LOW_RESOLUTION_TIME 指定前提条件,make 认定这些文件被 生成 低清晰度时间戳的命令来省城。.LOW_RESOLUTION_TIME 目的的片段被忽略。
现代文件系统的高清晰度文件时间戳会减少 make 错误地认为一个文件已经陈旧的问题。但是不幸的是,某些系统没有提供一种方式来设定高清晰度文件时间戳,因此某些命令比如 cp -p 这样的,显式设定文件时间戳,却必须把跌入个部分切掉了。如果一个文件由这样的命令创建,你应当把它列为 .LOW_RESOLUTION_TIME 的前提条件,这样 make 就不会错误地得出结论认为此文件陈旧了。例如:
.LOW_RESOLUTION_TIME: dst
dst: src
cp -p src dst
由于 cp -p 切掉了 src 文件时间戳的第二部分,所以 dst 会比src 旧一些,.LOW_RESOLUTION_TIME 行使得 make 认为 ,当 dst 的时间戳和src 一样的时候,dst 是比较新的。
由于 库文件格式的限制,库文件成员的时间戳总是低解析度的。你不需要把库文件成员列为.LOW_RESOLUTION_TIME的前提条件,因为 make 会自动这么做。
后文待续
GNU make manual 翻译( 一百零九)相关推荐
- GNU make manual 翻译( 一百零四)
继续翻译 4.7 Rules without Recipes or Prerequisites ==========================================If a rule ...
- GNU make manual 翻译( 一百五十九)
继续翻译 A computed variable name need not consist entirely of a single variable reference. It can conta ...
- GNU make manual 翻译( 一百五十五)
继续翻译 6.2 The Two Flavors of Variables ================================There are two ways that a vari ...
- GNU make manual 翻译( 一百二十四)
继续翻译 Note that such a prerequisite constitutes mentioning `main.o' in a makefile, so it can never be ...
- GNU make manual 翻译( 一百五十四)
继续翻译 6.1 Basics of Variable References =================================To substitute a variable's v ...
- GNU make manual 翻译( 一百二十一)
继续翻译 4.13 Double-Colon Rules =======================Double-colon rules are explicit rules written wi ...
- GNU make manual 翻译( 一百八十一)
继续翻译 The syntax of the CONDITIONAL-DIRECTIVE is the same whether the conditional is simple or comple ...
- GNU make manual 翻译( 一百八十三)
继续翻译 `ifndef VARIABLE-NAME' If the variable VARIABLE-NAME has an empty value, the TEXT-IF-TRUEis eff ...
- GNU make manual 翻译( 一百七十五)
继续翻译 `.DEFAULT_GOAL' Sets the default goal to be used if no targets were specified onthe command lin ...
最新文章
- linux下配置环境变量【原创】
- onclick事件中加href
- 硬件基础:理解串口通信以及232,485,422常见问题
- HTML5之语义化标签
- JAVA性能优化笔记(一)
- HTC G10官方解锁 刷机
- 超好用的纸飞机串口调试助手,支持绘图和关键字高亮
- 电脑打印机都正常,打印机无法打印
- ANSYS有限元分析
- web浏览器数据本地存储
- 插件化原理解析——广播的管理
- 计算机英语领域有哪些构词法,计算机专业英语的构词方法(共2969字).doc
- 破解“低代码”的4大误区,拥抱低门槛高效率的软件开发新选择 ZT
- reference other engineer's code to explain wheather linux terminal can display matplotlib' figure
- 孤立词语音识别(1)——利用HMM-GMM模型实现数字识别(完整收发系统)
- mmwave studio使用
- 我犯了一个低级的C++的逻辑错误
- 1. 大型网站架构演化
- 商业模式新生代_一年300+本读书计划之《商业模式新生代》
- 网易pop3服务器没有响应,***什么是POP3、SMTP和IMAP?(网易邮箱)
热门文章
- JAVA二分查找-探讨思维与代码的一致性
- 信息系统项目管理师:第1章:信息化与信息系统(4)-重点汇总
- org.dom4j.DocumentException: 20 Nested exception: 20
- 《系统集成项目管理工程师》必背100个知识点-81风险管理
- Linux系统服务(systemctl)的使用
- Android中点击按钮获取星级评分条的评分
- DevExpress的图形按钮菜单栏控件WindowsUIButtonPanel的布局、使用和设置按钮的点击事件
- 重入锁、死锁、活锁、公平非公平锁……一下子都给你屡清楚了
- 一个统计编码时长的Vscode插件神器
- 操作符和表达式的问题总结