recipe for target 'all' failed on Ubuntu 15.10 64-bit
<p>1) Program <strong>works</strong> well if I type each command on Terminal by gcc -o <code>file1 file1.c &amp;&amp; gcc file2.c -lm -o file2</code>, and then <code>./file1 someArgs ./file2 someArgs</code></p>

<p>2) Also <strong>works</strong> if I type in Terminal: make rst and make res</p>

<p>3) <strong>Not working</strong> by typing <code>make</code> in Terminal</p>

<p>Makefile:</p>

<pre><code>all:
    check

default:
    check

clean:
    rm -rf file1 file2

rst:
    gcc -o file1 file1.c &amp;&amp; gcc file2.c -lm -o file2

res:
    ./file1 someArgs ./file2 someArgs

check:
    make clean
    make rst
    make res
</code></pre>

<p>Also tried:</p>

<pre><code>all:
    check

default:
    check

clean:
    rm -rf file1 file2

rst:
    gcc -o file1 file1.c &amp;&amp; gcc file2.c -lm -o file2

res:
    ./file1 someArgs ./file2 someArgs

check:
    clean
    rst
    res
</code></pre>

<p>And some other combinations with or without <code>make</code>. All same error:</p>

<pre><code>make: check: Command not found
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 127
</code></pre>