A bit about

Hello, everyone! All you can see below is just my bank of information. Some material I've found in the fathomless net, some I've learned myself. Don't think all of the information here is right or actual, but may be it could be of use for you :) All feedback is welcome, especially constructive ones :)

Monday, May 12, 2008

lastword function in GNU Make

If you saw the previous post, you would notice that for MAKEFILE_LIST variable it's better to use lastword function (because this variable could contain more then one file name, but we need the last one). The problem is that some versions of GNU Make don't support this function. Another way to obtain the same result can be found here.
$(word $(words text),text)

instead of
$(lastword text)

Longer, but it works.