Ok, in any case you can use, as yourself stated some shellscripting in to
your makefiles. Optionally you can think it's not a theme related to bash
but how gcc works.

Maybe you can explore the GCC_EXEC_PREFIX option:

*GCC_EXEC_PREFIX*
           If *GCC_EXEC_PREFIX* is set, it specifies a prefix to use in the
           names of the subprograms executed by the compiler.  No slash is
           added when this prefix is combined with the name of a subprogram,
           but you can specify a prefix that ends with a slash if you wish.


Best regards,

Jonathan GF



On Jan 20, 2008 10:31 PM, Philip Prindeville <
[EMAIL PROTECTED]> wrote:

> I need to do this with "make", not with bash.
>
> -Philip
>
> Jonathan GF wrote:
> > Answering myself with a very easy example:
> >
> > *DIRECTORY="/path/to/Philip/solution/"*
> > *echo ${DIRECTORY%/}          *                # The trailing slash
> > was removed at this point, check it :)
> >
> > Internally is exactly what i said, but externally is very nice
> > function to use in makes and so forth...... ;)
> >
> > Regards,
> >
> > Jonathan GF
> >
> >
> >
> > On Jan 20, 2008 12:09 PM, Jonathan GF < [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     i don't know what do you want to do, but you can count the number
> >     of chars using a LEN() function, treat the path as an array, run
> >     along the array and stop 1 char before end, assigning the result
> >     to a new variable.
> >
> >     Just an idea ;)
> >
> >     Regards,
> >
> >     Jonathan GF
> >
> >
> >
> >
> >     On Jan 20, 2008 3:43 AM, Philip Prindeville <
> >     [EMAIL PROTECTED]
> >     <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >         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]
> >         <mailto:[email protected]>
> >         https://lists.sourceforge.net/lists/listinfo/astlinux-users
> >         <https://lists.sourceforge.net/lists/listinfo/astlinux-users>
> >
> >         Donations to support AstLinux are graciously accepted via
> >         PayPal to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>.
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > 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]
>
>
> -------------------------------------------------------------------------
> 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]
>
-------------------------------------------------------------------------
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