missing seperator error when [make all]

Posted johnsonshu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了missing seperator error when [make all]相关的知识,希望对你有一定的参考价值。

https://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...

to 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 -02 c.c ll.c  -o  ll  [email protected]  $<$ 
## 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

 

 

321 down vote accepted

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...

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

以上是关于missing seperator error when [make all]的主要内容,如果未能解决你的问题,请参考以下文章

error C2143: syntax error : missing ';' before '}'

电话号码的 pydantic 自定义数据类型:value_error.missing

latex遇见LATEX ERROR missing BEGINDOCUMENT问题

错误消息 Missing required dependencies, import error: Missing required dependencies ['numpy' ] when I tr

GitBlit中出现 error: remote unpack failed: error Missing tree

syntax error : missing ';' before identifier