diff --git a/Tools/scripts/mkptools/mkpbuild b/Tools/scripts/mkptools/mkpbuild index 996d527547f6..52537912ff8d 100755 --- a/Tools/scripts/mkptools/mkpbuild +++ b/Tools/scripts/mkptools/mkpbuild @@ -53,10 +53,12 @@ $tmpdir = "$tmpbase/$user.$portname"; $wdpdir = "$tmpdir/wdp"; $predir = "$tmpdir/prefix"; -$hmake = "env WRKDIRPREFIX=$wdpdir " . - "{SHARE,MAN,LIB,BIN}{OWN,GRP}=$user " . - "PREFIX=$predir NO_PKG_REGISTER=1 make"; - +$hmake = "env WRKDIRPREFIX=$wdpdir PREFIX=$predir NO_PKG_REGISTER=1 "; +foreach (qw"SHARE MAN LIB BIN") { + $hmake .= $_ . "OWN=$user "; + $hmake .= $_ . "GRP=$user "; +} +$hmake .= "PREFIX=$predir NO_PKG_REGISTER=1 make"; open(BUILD, "$hmake |"); while() {