title: Make on a Raspberry Pi "not recognized as an internal or external command"
body: <p>I am working on a Raspberry Pi project whereby we need to program a robot to run by itself.</p>
  
  <p>Currently I am using Geany as the Environment and C programming language. The steps are obtained from the following tutorial:</p>
  
  <p><a href="http://www.raspberry-projects.com/pi/programming-in-c/getting-your-raspberry-pi-ready-for-c-programming" rel="nofollow">http://www.raspberry-projects.com/pi/programming-in-c/getting-your-raspberry-pi-ready-for-c-programming</a></p>
  
  <p>However because I have never done this before, I encountered a problem. The website says Geany requires a 'makefile' to execute the program.  I created a simple main.c and makefile</p>
  
  <h3>main.c</h3>
  
  <pre><code>int main(int argc, char **argv)
  {
      printf("Hello world!");
      return 0;
  }
  </code></pre>
  
  <h3>makefile</h3>
  
  <pre><code>CC=gcc                  
  CFLAGS=-I.
  DEPS =                  
  
  all: main.o 
      gcc main.o -o target_bin
  
  main.o: main.c 
      gcc -I . -c main.c
  
  clean:
      rm -rf *.o
      rm target_bin
  </code></pre>
  
  <p>From Geany, I tried to Build/Compile/Make but I keep getting error like:</p>
  
  <blockquote>
    <p>'make' is not recognized as an internal or external command</p>
  </blockquote>
  
  <p>I tried compiling the <code>main.c</code> via command prompt, but it still prompts me with the same error:</p>
  
  <blockquote>
    <p>'gcc' is not recognized as an internal or external command,</p>
  </blockquote>
  
  <p>In summary, I have no idea how to make a makefile. Can anyone guide me?</p>