title: vscode makefile error: make: *** No targets specified and no makefile found. Stop
body: <p>I have a folder under .vscode with the main.cpp, Example.cpp, Example.h and Makefile. However, when I type make into the terminal, it says &quot;make: *** No targets specified and no makefile found.  Stop.&quot;</p>
  <p>Here is my tasks.json:</p>
  <pre><code>{
      &quot;version&quot;: &quot;2.0.0&quot;,
      &quot;tasks&quot;: [
          {
              &quot;type&quot;: &quot;cppbuild&quot;,
              &quot;label&quot;: &quot;C/C++: cpp.exe build active file&quot;,
              &quot;command&quot;: &quot;C:\\MinGW\\bin\\cpp.exe&quot;,
              &quot;args&quot;: [
                  &quot;-fdiagnostics-color=always&quot;,
                  &quot;-g&quot;,
                  &quot;${file}&quot;,
                  &quot;-o&quot;,
                  &quot;${fileDirname}\\${fileBasenameNoExtension}.exe&quot;
              ],
              &quot;options&quot;: {
                  &quot;cwd&quot;: &quot;${fileDirname}&quot;
              },
              &quot;problemMatcher&quot;: [
                  &quot;$gcc&quot;
              ],
              &quot;group&quot;: &quot;build&quot;,
              &quot;detail&quot;: &quot;compiler: C:\\MinGW\\bin\\cpp.exe&quot;
          },
          {
              &quot;type&quot;: &quot;shell&quot;,
              &quot;label&quot;: &quot;build&quot;,
              &quot;command&quot;: &quot;make&quot;,
              &quot;args&quot;: [],
              &quot;problemMatcher&quot;: []
          },
          {
              &quot;type&quot;: &quot;shell&quot;,
              &quot;label&quot;: &quot;clean&quot;,
              &quot;command&quot;: &quot;make&quot;,
              &quot;args&quot;: [&quot;clean&quot;],
              &quot;problemMatcher&quot;: []
          }
      ]
  }
  </code></pre>
  <p>And the makefile:</p>
  <pre><code>example.out: main.o Example.o
      g++ main.o Example.o example.out
  
  main.o: main.cpp Example.h 
      g++ -c main.cpp -o main.o
  
  Example.o: Example.cpp Example.h
      g++ -c Example.cpp -o Example.o 
  
  clean:
      rm *.o *.out
  </code></pre>
  <p>May I know what went wrong? Any help would be greatly appreciated!</p>