Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.16 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. splitting a variable in a make file
  2. half1 = $(dir $(x))
  3. half2 = $(notdir $(x))
  4.        
  5. y = $(subst /, ,$(x))
  6.  
  7. half1 = $(word 1, $(y))
  8. half2 = $(word 2, $(y))