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

 

posted on 2018-04-29 12:23  Arthurian  阅读(1614)  评论(0编辑  收藏  举报