Similar problems keeps coming back. I have things like this
API=1.0
...
APISYM=$(subst .,_,$(API))
# APISYM is now 1_0
Simple string substituion functions like subst and patsubst in GNU
Make are pretty hard to live without. OMake only has the highly
specialized replacesuffix, which is very useful where it applies.
--
David Kågedal