检查Makefile中的tab
2024-10-18 17:21:44
转:http://stackoverflow.com/questions/16931770/makefile4-missing-separator-stop
makefile has a very stupid relation with tabs , all actions of every rule are identified by tabs ...... and No 4 spaces dont make a tab , only a tab makes a tab...
o check i use the command
cat -e -t -v makefile_name
it shows the presence of tabs with ^I and line endings with $ both are vital to ensure that dependencies end properly and tabs mark the action for the rules so that they are easily identifiable to the make utility.....
example :
Kaizen ~/so_test $ cat -e -t -v mk.t
all:ll$ ## here the $ is end of line ...
$
ll:ll.c $
^Igcc -c -Wall -Werror - c.c ll.c -o ll $@ $<$
## the ^I above means a tab was there before the action part, so this lines ok .
$
clean :$
\rm -fr ll$
## see here there is no ^I which means , tab is not present ....
## in this case you need to open the file again and edit/ensure a tab
## starts the action part
最新文章
- 3.1、Spring和Struts2的结合使用
- Javascript模块化编程(二):AMD规范
- github page
- [原创]cocos2d-x研习录-第三阶 特性之调度器
- C语言中不同函数之间怎么传值?
- Lab_5_SysOps_Resources_Linux_v2.5
- 小组项目beta发布的评价
- 关于Java(不同工具或平台与“Hello World”)
- Printing Architecture
- Raid1源代码分析--同步流程
- java的动态代理设计模式
- JAVA之等号、传类对象参数与c++的区别
- 【Espruino】NO.03 从点灯开始
- JAVA于Get和Post差异请求
- Mybatis #{ } 和 ${ } 区别
- C# TextBlock 上标
- Zabbix实战-简易教程--动作(Actions)--自动发现
- [ffmpeg] 滤波
- xml文件sql中大于号、小于号、等号的转义问题
- Linux环境部署SVN服务器
热门文章
- 下载Chrome独立版(alternate/offline Installer)的地方
- 2k8 32bit下载
- 练手THINKPHP5过程和bootstrap3.3.7
- sql server 定期自动清理日志
- sql server自增列值的获取
- idea 安装 破解方法
- java 执行sql错误 传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确。参数 1 (";";): 数据类型 0x38 未知
- Spring boot 配置文件 使用占位符号
- margin和padding的四种写法
- 在Linux Bash通过上下键快速查找历史命令