Search notes:

GNU make: function $(subst …)

$(subst what, with, text) substituts $(what) in $(text) with $(with).
text = Hello foo
what = foo
with = world

#
# Change text, replace foo with world:
#
substituted = $(subst $(what), $(with), $(text))

dummy:
	@echo $(substituted)
Github repository about-Makefile, path: /functions/subst/Makefile

See also

Make functions

Index