Makefile:2: *** missing separator. Stop [duplicate]

https://stackoverflow.com/questions/23927212/makefile2-missing-separator-stop

 

Why does it happen?

1.Don't add a tab in front of the command

2. table is not recognize as real table, if you set expandtab in your .vimrc, the table will not be recognized.

 

How to check?

cat -e -t -v  makefile

It's show line starting by ^I if TAB is given to that line and it end the line by $.

 

posted on 2018-04-06 17:27  guolongnv  阅读(339)  评论(0)    收藏  举报