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

    继续翻译

    Secondary Expansion of Implicit Rules                        
    -------------------------------------                        
                            
    As `make' searches for an implicit rule, it substitutes the stem and then performs secondary expansion for every rule with a matching target pattern.  The value of the automatic variables is derived in the same fashion as for static pattern rules.  As an example:                           
         .SECONDEXPANSION:                     
                            
         foo: bar         
         foo foz: fo%: bo%  
         %oo: $$< $$^ $$+ $$*                        
                            
       When the implicit rule is tried for target `foo', `$$<' expands to `bar', `$$^' expands to `bar boo', `$$+' also expands to `bar boo', and `$$*' expands to `f'.                        

    对隐式规则的二次扩展

    当 make 搜寻一条 隐式规则,它替换枝干部分,并对每一条符合目的模式的规则进行二次扩展。

    自动变量的值也像静态模式规则那样被推导处理。

    例如:

    .SECONDEXPANSION:

    foo: bar

    foo foz: fo%: bo%

    %oo: $$< $$^ $$+ $$*

    当隐式规则用于目的 foo时,$$< 扩展为 bar, $$^ 扩展为 bar boo, $$+也扩展为 bar boo,$$*扩展为 f。

    后文待续

  • 相关阅读:
    第七十四节,css边框与背景
    php中strlen和{}的效率对比
    for循环++i效率
    php优化技巧
    mysql中group_concat函数用法
    mysql引擎互转问题
    array_column php 函数
    php-mysql结果集函数比较
    javaweb 要学习的东西
    Java 泛型和类型安全的容器
  • 原文地址:https://www.cnblogs.com/gaojian/p/2690000.html
Copyright © 2011-2022 走看看