Error:Makefile:452: target 'config' given more than once in the same rule

Posted Arthurian

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error:Makefile:452: target 'config' given more than once in the same rule相关的知识,希望对你有一定的参考价值。

 

在解压的 linux2.6.15 文件夹下 make menuconfig 的时候出现下面的错误:

Makefile:452: target ‘config‘ given more than once in the same rule
Makefile:452: *** mixed implicit and normal rules: deprecated syntax

 

 

这是因为我的系统的 make 工具版本较新,make 的旧版规则已经无法兼容新版。按照以下方式,问题得到解决,用 vi 打开 Makefile 文件,修改第 452 行: 
修改前:

config %config: scripts_basic outputmakefile FORCE

修改后

%config: scripts_basic outputmakefile FORCE

 

以上是关于Error:Makefile:452: target 'config' given more than once in the same rule的主要内容,如果未能解决你的问题,请参考以下文章