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

Makefile 为raspberry Pi编写汇编代码,MinGW错误,makefile,raspberry-pi,mingw,Makefile,Raspberry Pi,Mingw,我正在关注,我已经到了需要“生成”编译图像以将其转换为pi的地步,但我得到了以下错误: mkdir build/ The syntax of the command is incorrect. Makefile:57: recipe for target 'build/' failed mingw32-make: *** [build/] Error 1 makefile在模板中可用。第56+57行如下所示: $(BUILD): mkdir $@ 谁能告诉我出了什么问题以及如何解决?

我正在关注,我已经到了需要“生成”编译图像以将其转换为pi的地步,但我得到了以下错误:

mkdir build/
The syntax of the command is incorrect.
Makefile:57: recipe for target 'build/' failed
mingw32-make: *** [build/] Error 1
makefile在模板中可用。第56+57行如下所示:

$(BUILD):
    mkdir $@

谁能告诉我出了什么问题以及如何解决?我对这一点还不熟悉,并遵循分步指南:/谢谢

多亏了igagis的coment,我发现了问题所在:
mkdir build/
命令不正确,因为斜杠“/”。 在make文件中,变量target被定义为:
BUILD=BUILD/
,因为它后来被用作路径。I固定线路57如下:

$(BUILD):
    mkdir build

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

如果在windows命令行中键入
mkdir build/
,会怎么样?你还知道这个错误吗?谢谢你的提示,我试过了,但是因为斜杠的原因它是不正确的。所以我纠正了它,它的工作!