• GNU make manual 翻译(五十五)


    继续翻译

       The way this works is that the pattern rule has a pattern of just 
    `%', so it matches any target whatever.  The rule specifies a 
    prerequisite `force', to guarantee that the recipe will be run even if 
    the target file already exists.  We give the `force' target an empty 
    recipe to prevent `make' from searching for an implicit rule to build
    it--otherwise it would apply the same match-anything rule to `force' 
    itself and create a prerequisite loop!                        

    它工作的方式是因为 模式规则有一个 %模式,一次可以匹配任何目的。

    这个规则指定了一个前提条件 force,表明了既使目的文件已经存在,它的片段也会运行。

    我们给了 forcce 目的一个空的片段,用来防止 make 寻找一个隐式规则来生成自己-- 否则它就会应用这个匹配任何状况的规则来强迫自己产生 前提条件循环!

    后文待续

  • 相关阅读:
    数组
    字符对象的方法
    事件
    判断数据类型
    数据类型和变量
    语法
    快速入门
    JavaScript简介
    Spring init-method和destroy-method属性的使用
    spring3后提供了的context:property-placeholder/元素
  • 原文地址:https://www.cnblogs.com/gaojian/p/2688202.html
Copyright © 2020-2023  润新知