title: Variables cannot be compared in Makefile
body: <p>i wrote following code.
  but i faced the errors.</p>
  <pre><code>result=1
  ifeq (,1)
  /bin/sh: -c: line 1: syntax error near unexpected token `,1'
  /bin/sh: -c: line 1: `ifeq (,1)'
  </code></pre>
  <pre><code>test:
       result=$(shell cat test_result | grep &quot;Bad idea&quot; | wc -l)
       ifeq ($(result),1)
            @echo &quot;test passed&quot;
       else
            @echo &quot;test failed&quot;
       endif
  </code></pre>
  <p>Why does this happen?
  Can you tell me?</p>