Silly make question for you all...

I've got a variable, $(FOO), and I need to take the dirname part of it, 
and create a symlink, but if:

FOO := /a/b/c/d.e

then $(dir $(FOO)) will be /a/b/c/ and of course, the "ln -s" will crap 
out because of the trailing slash.

Any idea how to peel away the trailing slash?  I could "$(shell echo 
$(FOO) | sed ...)" but that's too ugly.

Thanks,

-Philip


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to