# $Id: forsubst.mk 1073 2021-06-27 05:01:23Z $ all: for-subst here := ${.PARSEDIR} # this should not run foul of the parser .for file in ${.PARSEFILE} for-subst: ${file:S;^;${here}/;g} @echo ".for with :S;... OK" .endfor