$(subst what, with, text)
$(what)
$(text)
$(with)
text = Hello foo what = foo with = world # # Change text, replace foo with world: # substituted = $(subst $(what), $(with), $(text)) dummy: @echo $(substituted)
Index