title: make split string get last element
body: <p>In bash I can split a string similar to
  <a href="https://stackoverflow.com/questions/3162385/how-to-split-a-string-in-shell-and-get-the-last-field">How to split a string in shell and get the last field</a> </p>
  
  <pre><code>foo=1:2:3:4:5
  echo ${foo##*:}
  </code></pre>
  
  <p>how can I achieve something similar with make inside a makefile? Any solutions I found were a lot more complicated than the bash pendant. </p>
  
  <p>I tried to use:
  <code>$(shell ${foo##*:})</code> but this fails as a string does not seem to terminate properly.</p>