zoukankan      html  css  js  c++  java
  • GNU make manual 翻译(七十八)

    继续翻译

    4.3 Types of Prerequisites                        
    ==========================                        
                            
    There are actually two different types of prerequisites understood by GNU `make': normal prerequisites such as described in the previous section, and "order-only" prerequisites.  A normal prerequisite makes two statements: first, it imposes an order in which recipes will be invoked: the recipes for all prerequisites of a target will be completed before the recipe for the target is run.  Second, it imposes a dependency relationship: if any prerequisite is newer than the target, then the target is considered out-of-date and must be rebuilt. 
                            
       Normally, this is exactly what you want: if a target's prerequisite 
    is updated, then the target should also be updated.                        

    4.3 前提条件的类型
    ==========================
    GNU make 可以理解两种不同类型的前提条件:

    前面章节中描述的普通的前提条件,以及 仅排序 前提条件。

    一个普通的前提条件完成两件事:首先,它确立了一个顺序,片段被激活的时候要运用此顺序:

    一个目的的所有前提条件都将被完成后,此目的的片段才会执行。

    第二,它确立了一个依赖关系: 如果任何前提条件比目的新,则目的被认为已经过期,需要重新构建。

    通常,这正是你所想要的:如果一个前提条件被修改了,那么目的也需要被修改。

    后文待续

  • 相关阅读:
    C++模板&泛型编程
    C++继承
    测试pc大、小端
    C语言标准定义的32个关键字
    *塔,菱形
    练习小题目
    c一些关键字
    uvaoj 489
    uvaoj1339
    hdu1969Pie(根据体积二分,分馅饼)
  • 原文地址:https://www.cnblogs.com/gaojian/p/2690756.html
Copyright © 2011-2022 走看看