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

    继续翻译

       If `make' finds none of these names, it does not use any makefile.
    Then you must specify a goal with a command argument, and `make' will
    attempt to figure out how to remake it using only its built-in implicit
    rules.  *Note Using Implicit Rules: Implicit Rules.                
    
       If you want to use a nonstandard name for your makefile, you can
    specify the makefile name with the `-f' or `--file' option.  The
    arguments `-f NAME' or `--file=NAME' tell `make' to read the file NAME
    as the makefile.  If you use more than one `-f' or `--file' option, you    
    can specify several makefiles.  All the makefiles are effectively
    concatenated in the order specified.  The default makefile names
    `GNUmakefile', `makefile' and `Makefile' are not checked automatically
    if you specify `-f' or `--file'.                          
                            

    如果make 没有找到这些名字,它将不使用任何makefile。这样你就必须通过命令行参数来指定一个终点,这样make 将尝试去理解如何去利用隐式规则来重新建立一个makefile。

    *Note Using Implicit Rules: Implicit Rules.

    如果你想要为你的 makefile 使用一个非标准的名称,你可以通过 -f 或者 --file 选项来指定 makefile的名字。 -f NAME 或者  --file=NAME 告诉 make 去读取此 NAME 文件来作为 makefile。如果你使用了多于一个的 -f 或 --file 选项,你可以指定多个 makefile。所有的 makefile将被按照指定的顺序串连起来。

    当你指定了 -f 或者 --file选项的时候,GNUmakefile , makefile , Makefile将不会被自动检查。

    后文待续

  • 相关阅读:
    Scite 编辑器及其相关项目介绍
    cmake 常用指令入门指南
    C++中的POD类型
    引用折叠、万能引用和完美转发那些事
    c++的对象初始化
    C++类对象的内存布局
    effective C++ 读书精华笔记提取
    c/c++的const说明符——深入挖掘
    gdb调试器—常用知识(一)
    g++/gcc编译器——常用知识(一)
  • 原文地址:https://www.cnblogs.com/gaojian/p/2684395.html
Copyright © 2011-2022 走看看