title: Convert hex to decimal in make script?
body: <p>A <strong>make</strong> script is attempting to set a variable as follows:</p>
  
  <pre><code>VER_DEC=$( perl -e "print hex(\"$(VER_HEX)\");" )
  </code></pre>
  
  <p>where <code>VER_HEX</code> happens to have a value of <code>0a</code>.</p>
  
  <p>Perl seems to think that VER_HEX is zero, implying that the variable isn't set (but it <em>is</em>, according to a debug echo in the makefile).</p>
  
  <p>Does make have a simpler way to convert bases?</p>
  
  <p>If so, what version of make is required?</p>
  
  <p>UPDATE: This is a GNU Makefile. The invocation of perl is missing the word <code>shell</code> inside the <code>$( )</code> as well as potentially having escaping issues with the double-quotes.</p>