$inherited =~ s/($target)/.IMPORT: PATH\nPATH := \$(PATH);build\n.EXPORT: PATH\n$1/;