title: splitting a variable in a make file
body: <p>I have a variable lets say
  x=tpm/tpm</p>
  
  <p>in a makefile i want to be able to split x to halves.</p>
  
  <p>in bash this would be something like ${x%/<em>} and ${x#</em>/}</p>
  
  <p>but how do i do it in a makefile?</p>
  
  <p>thanks in advance.</p>