Makefile显示“make: Nothing to be done for xxxx”的解决方法
来源:互联网 发布:美萍软件使用教程 编辑:程序博客网 时间:2024/05/16 14:03
1. 问题
添加一个Makefile的target的时,总会出现“make: Nothing to be done for `xxxxx’”的提示,而书写语法表面正确。
2. 原因
Makefile的target和目录或文件名字冲突。
A phony target is one that is not really the name of a file;
rather it is just a name for a recipe to be executed when you make an explicit request.
There are two reasons to use a phony target:
to avoid a conflict with a file of the same name, and to improve performance.
If you write a rule whose recipe will not create the target file, the recipe will be executed every time the target comes up for remaking.
3. 总结
GNU默认Makefile的target是一个文件(或目录)。
它会先检测同级目录下是否已存在这个文件,如果存在,则会abort掉make 进程,并提示
make: Nothing to be done for `xxxx’
这种情况需要.PHONY来避免问题的出现,phony的意思是“赝品”,在这里可以形象的理解成“不是文件”。
参考文献:
[1] http://blog.csdn.net/linuxtiger/article/details/7955060 作者: 对象
- Makefile显示“make: Nothing to be done for xxxx”的解决方法
- makefile 错误 make: Nothing to be done for...
- make: Nothing to be done for `all' 解决方法 ---实验2
- make: Nothing to be done for `all' 解决方法 ---实验2
- make: Nothing to be done for `all' 解决方法
- make: Nothing to be done for `all' 解决方法
- make: Nothing to be done for 'first'
- make: Nothing to be done for 'all'
- make: Nothing to be done for 'all'
- make: Nothing to be done for `all'的解决办法
- Make: Nothing to be done for 'all'. Make: Nothing to be done for 'default'.
- make: Nothing to be done for 'all' 解决方法(以Ubuntu12.04为例)
- make: Nothing to be done for `all_modules'.问题解决
- Nothing to be done for `_depend' 解决 make uboot时出现的错误
- 如何解决make: Nothing to be done for `all' 的方法
- 如何解决make: Nothing to be done for `all' 的方法
- make: Nothing to be done for `unix';./libtool: Command not found make: *** [jcapimin.lo] Error 127
- nothing to be done for all
- Grafana的安装(CentOS )- 千月带你美化监控数据 grafana(1)
- 浅谈js常用内置方法和对象
- windows-caffe下新建项目
- XHR——XMLHttpRequest对象
- bzoj2463: [中山市选2009]谁能赢呢?
- Makefile显示“make: Nothing to be done for xxxx”的解决方法
- uiautomatorviewer
- 通过python socket远程执行命令,并返回值
- js 对象数组 搜索 ep: find key "a" = value "12" in [{"a":12},{"a":999}] = {index:1,{"a":12}}
- Spring获取request和response
- 网际协议IP(3)之网际控制报文协议ICMP(Internet Control Message Protocol)
- HDOJ--1282 回文数猜想
- Aprior c++ 实现
- mysql(一)