如何修复 Makefile *** missing separator. Stop.

问题

你正在尝试在 Makefile 上运行 make,但收到如下错误:

makefile_error.txt
Makefile:2: *** missing separator.  Stop.

解决方案

此错误是由 Makefile 中行首缺少制表符引起的。确保 Makefile 中所有应该是命令的行都以制表符开头。

通常此错误发生是因为你使用空格缩进而不是制表符。


Check out similar posts by category: Build Systems