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

    继续翻译

    2.1 What a Rule Looks Like    
    ==========================    
        
    A simple makefile consists of "rules" with the following shape:    
        
         TARGET ... : PREREQUISITES ...    
                 RECIPE    
                 ...    
                 ...    
        
       A "target" is usually the name of a file that is generated by a    
    program; examples of targets are executable or object files.  A target    
    can also be the name of an action to carry out, such as `clean' (*note    
    Phony Targets::).    
        
       A "prerequisite" is a file that is used as input to create the    
    target.  A target often depends on several files.    

    2.1 规则长什么样

    一个简单的makefile 由如下的规则组成:

    目的... :  前提条件 ...

             片段

              ...

              ...

    一个目的是一个 文件的名字,此文件由某个程序生成。

    目的的例子如 可执行文件 或者 目标文件。

    目的也可以是 动作的名称 ,比如 clean (*note Phony Targets (伪目标))

    一个前提条件是 一个文件名字,此文件被用作输入以产生目的。目的常常依赖于几种文件。

    后文待续

  • 相关阅读:
    主机连接不上虚拟机或虚拟机桥接没有网络
    asp web 报表
    heart or house?
    CPointer
    Raid
    Dos for by 随风
    不支持uri格式
    FabEdge V0.4 新特性:支持多集群通讯
    运维监控
    /etc缩写
  • 原文地址:https://www.cnblogs.com/gaojian/p/2681738.html
Copyright © 2011-2022 走看看