Wednesday, December 23, 2009

Someone Doesn't Know How make Works

I tried to look up documentation on makefile macro modifiers, and the first result gave the syntax as this:
$(name,modifier[,modifier ...])
I don't know what kind of 'make' this author was using, but that syntax doesn't work at all in mine. I sought out the real make documentation, and the concept of a macro modifier doesn't even seem to exist. The closest we get is a Substitution Reference, which uses a colon, not a comma, and has limited functionality.

In the end, the $(subst from,to,text) function solved my original problem.

No comments: