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

    继续翻译

       However, on occasion you might actually wish to prevent updating of  
    even the makefiles.  You can do this by specifying the makefiles as
    goals in the command line as well as specifying them as makefiles. 
    When the makefile name is specified explicitly as a goal, the options 
    `-t' and so on do apply to them.                        
                            
       Thus, `make -f mfile -n mfile foo' would read the makefile `mfile',
    print the recipe needed to update it without actually running it, and 
    then print the recipe needed to update `foo' without running that.  The 
    recipe for `foo' will be the one specified by the existing contents of 
    `mfile'.

    但是,有一种情形,你可能希望防止更新makefile。你可以把这些makefile在 命令行里指定为 终点。

    当 makefile名字被显式地指定为一个终点时,选项-t之类的会对makefile起作用。

    因此, make -f mfile -n mfile foo  将要读取名为mfile的 makefile,打印出能够改变mfile的片段但并不实际执行这些片段,并且然后打印出能够改变foo的片段但并不实际执行这些片段。foo相关的片段是 mfile的片段中的一部分。 

    后文待续

  • 相关阅读:
    暑假日报-35
    非确定性有穷状态决策自动机练习题Vol.1 题解 & 总结
    loj数列分块入门 1~9
    第12周作业
    第二阶段考试
    UOJ NOI Round 4
    事件
    爬楼梯
    构造函数输出
    比较版本号大小
  • 原文地址:https://www.cnblogs.com/gaojian/p/2685130.html
Copyright © 2011-2022 走看看