make/expansions/substitute-wordending (209 bytes)
1 # Replace the word ending in every word of a variable 2 # newvar := $(oldvar:old-end-of-word=new-end-of-word) 3 # changes all the word endings 4 # most common use is: 5 # new := $(old:.o=.c) 6 <++> := $(<++>:<++>=<++>)