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