博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
GNU make manual 翻译(七十九)
阅读量:5065 次
发布时间:2019-06-12

本文共 1569 字,大约阅读时间需要 5 分钟。

继续翻译

Occasionally, however, you have a situation where you want to impose a specific ordering on the rules to be invoked _without_ forcing the target to be updated if one of those rules is executed.  In that case, you want to define "order-only" prerequisites.  Order-only prerequisites can be specified by placing a pipe symbol (`|') in the prerequisites list: any prerequisites to the left of the pipe symbol are normal; any prerequisites to the right are order-only:       TARGETS : NORMAL-PREREQUISITES | ORDER-ONLY-PREREQUISITES                            The normal prerequisites section may of course be empty.  Also, youmay still declare multiple lines of prerequisites for the same target: they are appended appropriately (normal prerequisites are appended to the list of normal prerequisites; order-only prerequisites are appended  to the list of order-only prerequisites).  Note that if you declare the same file to be both a normal and an order-only prerequisite, the normal prerequisite takes precedence (since they have a strict supersetof the behavior of an order-only prerequisite).

Order-only

prerequisites can be specified by placing a pipe symbol (`|') in the
prerequisites list: any prerequisites to the left of the pipe symbol
are normal; any prerequisites to the right are order-only:
TARGETS : NORMAL-PREREQUISITES | ORDER-ONLY-PREREQUISITES

某些情况下,你会遭遇一种状况,你想要为规则指定一个特定的顺序来运行,而不需要强迫目的被更新。

在这种场合,你也许想要定义 仅顺序 前提条件。仅顺序前提条件可以通过在前提条件列表中运用管道符号| 来实现:管道符号左边的前提条件是普通前提条件;右边是仅顺序前提条件。

后文待续

转载于:https://www.cnblogs.com/gaojian/archive/2012/09/18/2690781.html

你可能感兴趣的文章
cocoapos错误信息
查看>>
得到链表的中间节点
查看>>
java排序集锦
查看>>
ServletContextListener 解析用法
查看>>
模拟登录
查看>>
Java使用多线程发送消息
查看>>
Win2008 R2 IIS7.5+PHP5(FastCGI)+MySQL5环境搭建教程
查看>>
MySQL LIMIT 如何改写成Oracle limit
查看>>
Mysql 中的Text字段的范围
查看>>
安卓SQLiteOpenHelper使用说明
查看>>
a标签样式
查看>>
NYOJ 998
查看>>
关于读完《软件工程》之后不解的问题
查看>>
【Hibernate】could not instantiate class.. from tuple] with root cause
查看>>
关于session
查看>>
JAVA程序通过JNI调用C/C++库
查看>>
javascript中常用数组方法详细讲解
查看>>
[bzoj4922]Karp-de-Chant Number
查看>>
CSS实现单行、多行文本溢出显示省略号
查看>>
python (八)迭代器、生成器、列表推导式
查看>>