title: Makefile error, make *** no targets specified and no makefile found. stop
body: <p>i am very new in build systems and i am trying to build c++ file with mingw compiler and makefile on windows. </p>
  
  <p>i installed mingw and added it to PATH. My code as follows</p>
  
  <pre><code>//main.cpp
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      cout &lt;&lt; "Hello World !!!! "
      return 0;
  }
  
  //Makefile
  
  program:
      g++  main.cpp  -o  program 
  </code></pre>
  
  <p>i change my working directory as C:\MyDir which is included my .cpp and Makefile</p>
  
  <pre><code>cd C:\\MyDir
  
  C:\\MyDir&gt; make
  </code></pre>
  
  <p>i get the error</p>
  
  <blockquote>
    <p>make *** no targets specified and no makefile found. stop ...</p>
  </blockquote>
  
  <p>Do you have any idea about this problem, thanks..</p>