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

    继续翻译

       The target `clean' is not a file, but merely the name of an action.    
    Since you normally do not want to carry out the actions in this rule,    
    `clean' is not a prerequisite of any other rule.  Consequently, `make'    
    never does anything with it unless you tell it specifically.  Note that    
    this rule not only is not a prerequisite, it also does not have any    
    prerequisites, so the only purpose of the rule is to run the specified    
    recipe.  Targets that do not refer to files but are just actions are    
    called "phony targets".  *Note Phony Targets::, for information about    
    this kind of target.  *Note Errors in Recipes: Errors, to see how to    
    cause `make' to ignore errors from `rm' or any other command.      

     目的 clean 不是一个文件,是一个动作的名称。

     由于通常你不会想要执行此规则中的动作,clean 不是任何其他 rule 的 前提条条件。

    除非你只告诉它要这么做,make 绝不会执行 clean 的。

    注意这个规则(的目的)不但不是任何其他规则的前提条件,它自身也没有任何前提条件。

    所以,各个规则的唯一作用就是要运行特定的片段。

    与文件无关只是执行动作的 目的,被称为伪目的(phony targets)。

    可以参考 (*Note Phony Targets) 进行相应的了解。

    可以参考 (*Note Errors in Recipes:Errors),了解如何使得 make 忽略错误(如执行rm导致)。

    后文待续

  • 相关阅读:
    Java中异常的捕获与处理
    vue动态绑定class的最常用几种方式:
    JS常用验证正则表达式
    JAVA面试—JDBC
    spring技术的通俗理解
    @RequestMapping 原理(程序如何找到请求的方法的?)
    Java定时任务的几种实现
    什么是分布式系统?
    Java架构师学习路线
    spring boot和SSM开发中有什么区别?
  • 原文地址:https://www.cnblogs.com/gaojian/p/2681993.html
Copyright © 2011-2022 走看看