zoukankan      html  css  js  c++  java
  • 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 寻找一个隐式规则来生成自己-- 否则它就会应用这个匹配任何状况的规则来强迫自己产生 前提条件循环!

    后文待续

  • 相关阅读:
    抽象类和接口
    回调函数
    Spring Aop、拦截器、过滤器的区别
    事务
    SQL 模糊查询条件的四种匹配模式
    shell编程(二)
    shell编程(一)
    shell介绍
    字符验证码
    selenium
  • 原文地址:https://www.cnblogs.com/gaojian/p/2688202.html
Copyright © 2011-2022 走看看