title: Check File Existence with Makefile Conditional
body: <p>I am trying to check the existence of a file using Makefile conditionals.</p>
  
  <p>I've tried the following syntax which don't seem to work:</p>
  
  <pre><code>Path = /usr/local/myFileVer1
  ifeq ($(wildcard $(Path)),)  
  version = 1
  else
  version = 2
  endif
  </code></pre>
  
  <p>I thought the wildcard statement would evaluate to an empty string if the file did not exist so it would fall into the else statement.  That isn't happening.</p>
  
  <p>Any idea what else I can try?</p>