转: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

最新文章

  1. 3.1、Spring和Struts2的结合使用
  2. Javascript模块化编程(二):AMD规范
  3. github page
  4. [原创]cocos2d-x研习录-第三阶 特性之调度器
  5. C语言中不同函数之间怎么传值?
  6. Lab_5_SysOps_Resources_Linux_v2.5
  7. 小组项目beta发布的评价
  8. 关于Java(不同工具或平台与“Hello World”)
  9. Printing Architecture
  10. Raid1源代码分析--同步流程
  11. java的动态代理设计模式
  12. JAVA之等号、传类对象参数与c++的区别
  13. 【Espruino】NO.03 从点灯开始
  14. JAVA于Get和Post差异请求
  15. Mybatis #{ } 和 ${ } 区别
  16. C# TextBlock 上标
  17. Zabbix实战-简易教程--动作(Actions)--自动发现
  18. [ffmpeg] 滤波
  19. xml文件sql中大于号、小于号、等号的转义问题
  20. Linux环境部署SVN服务器

热门文章

  1. 下载Chrome独立版(alternate/offline Installer)的地方
  2. 2k8 32bit下载
  3. 练手THINKPHP5过程和bootstrap3.3.7
  4. sql server 定期自动清理日志
  5. sql server自增列值的获取
  6. idea 安装 破解方法
  7. java 执行sql错误 传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确。参数 1 (&quot;&quot;): 数据类型 0x38 未知
  8. Spring boot 配置文件 使用占位符号
  9. margin和padding的四种写法
  10. 在Linux Bash通过上下键快速查找历史命令