New answers tagged c++
If you are using Linux, very likely you are using GNU make. That has a dir function. So you could have a rule like $(TARGET): doSomething $(dir $(MY_LIB)) (Not found in POSIX make—other implementations may have similar extensions).
you have the $(basename $path) for filename and $(dir $path) for dir component
Top 50 recent answers are included