title: How to remove the last trailing (back)slash in gnu make file?
body: <p>I want to write a make file to compile my source code. I have to put in my make file the includes paths but i have a lot of folders with source codes. 
  In make file i have a list with all .c files like this :</p>
  
  <pre><code>__MDA_SRC = \
  $(__VIEWPATH)\f_03\test\mda\src\mda.c
  </code></pre>
  
  <p>now i need to find out the path of this file.</p>
  
  <p>I tried this one :</p>
  
  <pre><code>__PATHS_FEATURE = \
  $(dir $(__MDA_SRC ))
  
  __INCLUDE_PATHES := \
  -I$(__PATHS_FEATURE)
  </code></pre>
  
  <p>but i have an error <code>F100: cannot open ...bla bla..</code></p>
  
  <p>i supposed that the problem is on the path, because the path is extructed with the last backslash like:
  <code>..\..\..\..\..\f_03\test\mda\src\</code> </p>
  
  <p>How could i have the path without the last backslash like this :
  <code>..\..\..\..\..\f_02\hydraulic\btc\src</code></p>