本文翻译自:makefile:4: *** missing separator. Stop
This is my makefile: 这是我的makefile:
all:ll
ll:ll.c
gcc -c -Wall -Werror -02 c.c ll.c -o ll $@ $<
clean :
\rm -fr ll
When I try to make clean
or make make
, I get this error: 当我尝试make clean
或make make
,出现以下错误:
:makefile:4: *** missing separator. Stop.
How can I fix it? 我该如何解决?
#1楼
参考:https://stackoom.com/question/192j4/makefile-缺少分隔符-停止
#2楼
You should always write command after a "tab" and not white space. 您应该