zoukankan      html  css  js  c++  java
  • GNU make manual 翻译( 一百二十二)

    继续翻译

       The double-colon rules for a target are executed in the order they
    appear in the makefile.  However, the cases where double-colon rules
    really make sense are those where the order of executing the recipes
    would not matter.
    
       Double-colon rules are somewhat obscure and not often very useful;
    they provide a mechanism for cases in which the method used to update a
    target differs depending on which prerequisite files caused the update,
    and such cases are rare.
    
       Each double-colon rule should specify a recipe; if it does not, an
    implicit rule will be used if one applies.  *Note Using Implicit Rules:
    Implicit Rules.

    对一个目的双冒号规则,执行顺序是它们在makefile中出现的顺序。但是,双冒号规则真正有益处的场合是执行顺序没有影响的哪些。

    双冒号规则有些模糊不清,而且也不是很有用;它们提供了一种机制,这可以使得在改变目的所用的方法依赖于具体由哪些前提条件触发的场合很适用,但毕竟这种情况很少见。

    每个双冒号规则应当指定一个片段;如果不这样做,一个隐式规则将会被适用。*Note Using Implicit Rules: Implicit Rules.

    后文待续

  • 相关阅读:
    NOIP simulation
    NOIP2013
    BZOJ 4176 Lucas的数论
    BZOJ 3512 DZY Loves Math IV
    BZOJ 3994 Sum
    BZOJ 4174 tty的求助
    BZOJ 3561 DZY Loves Math VI
    BZOJ 2508 简单题/BZOJ 3775 点和直线
    FTR #1 百步穿杨
    BZOJ 4407 于神之怒加强版
  • 原文地址:https://www.cnblogs.com/gaojian/p/2704083.html
Copyright © 2011-2022 走看看