title: how to run makefile in ubuntu
body: <p>There are two simple .c files add.c and hello.c. this is my makefile-</p>
  
  <pre><code>all:  add.exe hello.exe
  
  add.exe: add.o
  
      gcc -o add.exe add.o
  
  
  
  hello.exe: hello.o
  
      gcc -o hello.exe hello.o
  
  
  
  add.o: add.c 
  
      gcc -c add.c
  
  
  
  hello.o: hello.c 
  
      gcc -c hello.c
  </code></pre>
  
  <p>on typing <code>make</code> on terminal it shows all those four commands, but when i try to run this using <code>./all</code> it says </p>
  
  <pre><code>bash: ./all: No such file or directory. 
  </code></pre>
  
  <p><code>./hello.exe</code> or <code>./add.exe</code> works fine.</p>
  
  <p>when I type ./all on my friend's pc, it shows proper output.</p>
  
  <p><a href="https://i.stack.imgur.com/DuSe3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DuSe3.png" alt="enter image description here"></a></p>