Makefile笔记02之error:***commands commence before first target. stop
来源:互联网 发布:淘宝心选没有彩虹系统 编辑:程序博客网 时间:2024/05/29 08:49
前人的路,我正在走。。。
下面是一个Makefile文件:
x:
echo $AA = B
echo there
执行make后将得到:
error:***commands commence before first target. stop
原因:在赋值语句A =B 后的命令echo无效,但是echo前面又有tab字符,于是就相爱相杀了。
解法:可以在赋值语句前出现命令(tab字符一定要有),或者在本Makefile文件中去掉赋值语句A = B
网上其他说法:
1. 上一行换行符号 \ 后面有空格
2. 本行前面的空白有非法字符
1)Makefile可能是以命令行开始:以[Tab]字符开始,但不是一个合法的命令行(例如,一个变量的赋值)。命令行必须和规则一一对应。
2)产生第二种的错误的原因可能是一行的第一个非空字符为分号,make会认为此处遗漏了规则的“target:prerequisite”部分。
阅读全文
0 0
- Makefile笔记02之error:***commands commence before first target. stop
- commands commence before first target. Stop.
- Makefile错误:commands commence before first target.
- commands commence before first target makefile
- error: commands commence before first target
- g++编译报错原因分析 makefile : *** commands commence before first target. stop.
- commands commence before first target
- commands commence before first target
- commands commence before first target
- commands commence before first target
- commands commence before first target
- makefile编译时候出现:commands commence before first target
- 编译错误:commands commence before first target
- commands commence before first target. 报错
- make:commands commence before first target
- frameworks/base/Android.mk:135: *** commands commence before first target. Stop.
- Disksim 4.0 + SSD-extention make编译时出现错误 “ **commands commence before first target. Stop.”
- Android编译时出现“commands commence before first target”
- Django 小结一
- Error:Execution failed for task ':app:processDebugResources'.
- Linux服务器离线安装xgboost
- Java Web 项目中的配置文件路径
- BZOJ 4670 佛罗里达
- Makefile笔记02之error:***commands commence before first target. stop
- 关于android指纹识别兼容6.0以下版本
- webrtc 网络块port创建流程
- IE、FF、Chrome浏览器中的JS差异介绍
- cin和cout的使用
- Linux(CentOS6.7)下Nginx的安装和使用
- tp中3个查询,复合查询案例,比较复杂
- css基础笔记(持续添加)
- 专访海尔小帅影院创始人马文俊:硬件不是未来 需求才是未来