找不到 Makefile 入口点

Arc*_*Dev 5 entry-point visual-studio-code

我已经安装了 vscode,但总是打开此消息(图片右下角)。我已为您附上屏幕截图。有人知道我该如何解决这个问题吗?

在此输入图像描述

小智 5

代码结构如下:

myProject
  |
  |_ component1
     |_ src: cpp files
     |_ Makefile
  |_ component2
     |_ src: cpp files
     |_ Makefile
Run Code Online (Sandbox Code Playgroud)

我通过在./myProject下创建包含以下内容的Makefile解决了这个问题:

MAKE := make
all:
    $(MAKE) -C ./component1
    $(MAKE) -C ./component2
Run Code Online (Sandbox Code Playgroud)