错误makefile, line 30 make Dependency line needs colon or double colon operator的解决方法
错误makefile, line 30 make Dependency line needs colon or double colon operator的解决方法
使用makefile编译文件时,执行make命令报如下错误。
"makefile", line 30: make: Dependency line needs colon or double colon operator.
"makefile", line 32: make: Dependency line needs colon or double colon operator.
"makefile", line 51: make: Dependency line needs colon or double colon operator.
"makefile", line 55: make: Dependency line needs colon or double colon operator.
"makefile", line 82: make: Dependency line needs colon or double colon operator.
make: Fatal errors encountered -- cannot continue.
错误原因:在linux下的make默认是GNU make,但是在unix下make工具默认被其他make占用,如果要想调用
GNU make只能用gmake.用其他make来解析GNU make语法的makefile文件,很可能会报错。这个时候只需要
使用gmake就可以解决问题了。
解决方法:unix下应该使用gmake
PS:不当之处,敬请批评指正。