# pkgsrc does not like MAKEFLAGS being set function bmake if string match -q -r '/pkgsrc$|/pkgsrc/' $PWD env MAKEFLAGS= bmake $argv else command bmake $argv end end