It makes more sense to just redefine $S for $QT4_BUILD_TYPE=release instead of working around it by resetting $MY_P.