title: How to compare two string variables in Makefile
body: <p>I have the following code:</p>
  
  <pre><code>LOCAL_VERSION := $(shell some_binary -v | head -n 1)
  REMOTE_VERSION := $(shell curl -s https://example.com/key)
  
  all:
      ifeq($(REMOTE_VERSION), $(LOCAL_VERSION))
          @echo yes
      endfi
  </code></pre>
  
  <p>But I am getting this:</p>
  
  <pre><code>user:tmp user$ make
  ifeq(v0.11.1, v0.11.1)
  /bin/sh: -c: line 0: syntax error near unexpected token `v0.11.1,'
  /bin/sh: -c: line 0: `ifeq(v0.11.1, v0.11.1)'
  make: *** [all] Error
  </code></pre>
  
  <p>I am on Mac OSX, but it's using GNU Make anyway.</p>