GNU make manual 翻译(四十五)

继续翻译

   If you want `make' to simply ignore a makefile which does not exist 
or cannot be remade, with no error message, use the `-include' 
directive instead of `include', like this:                        
                        
     -include FILENAMES...                        
                        
   This acts like `include' in every way except that there is no error 
(not even a warning) if any of the FILENAMES (or any prerequisites of 
any of the FILENAMES) do not exist or cannot be remade.                        
                        

如果你想让 make 简单地忽略一个 makefile不存在或不能被生成的情况,而且不报告出错信息,可以用

-include 指令 来代替 include,像下面这样:

      -include FILENAMES...

它和include 的功能一样,除了 FILENAMES 或 FILENAMES 的前提条件不存在/无法生成时,不报告错误。

后文待续

posted @ 2012-09-14 13:21  健哥的数据花园  阅读(173)  评论(0编辑  收藏  举报