为 raspberry Pi 编写汇编代码,MinGW 错误

Writing assembly code for raspberry Pi, MinGW error

我正在关注 this tutorial,我已经到了需要 'make' 编译图像以将其放入 pi 的地步,但我收到以下错误:

mkdir build/
The syntax of the command is incorrect.
Makefile:57: recipe for target 'build/' failed
mingw32-make: *** [build/] Error 1

makefile 在模板中可用 here。第 56 + 57 行如下所示:

$(BUILD):
    mkdir $@

谁能告诉我哪里出了问题以及如何解决?我是新手,正在按照分步指南进行操作:/谢谢!

感谢 igagis 的评论,我发现了问题所在:mkdir build/ 是不正确的命令,因为斜线符号为“/”。 在make文件中,变量target定义为:BUILD = build/,因为后面要用作路径。我将第 57 行固定如下:

$(BUILD):
    mkdir build

代码现在可以按预期编译。