title: Makefile 'if' condition with regexp
body: <p>I need to do something like this:</p>
  
  <pre><code>case `uname -m` in
  i?86) echo "CFLAGS += -march=i486 -mtune=native" &gt; configparms ;;
  esac
  </code></pre>
  
  <p>But I need to do this in makefile for a particular target. I have not found a method to make an if condition with a regular expression.</p>
  
  <p>I tried this:</p>
  
  <pre><code>ifeq ($(shell uname -m), i*86)
  </code></pre>
  
  <p>But it does not work.
  Even </p>
  
  <pre><code>ifeq ($(shell uname -m), i686)
  </code></pre>
  
  <p>does not work.</p>