That uses the shell to parse a line that's written in make(1)
syntax. It will work in simple cases but it's not reliable.

build.sh could do it properly using the getmakevar() function, but
I don't think it's worth the trouble, because any MAKEOBJDIRPREFIX
setting in mk.conf would still be ignored by any make process
that's not launched from build.sh.