bmake is the portable variant of NetBSD make utility.
In Nixpkgs, bmake comes with a hook that overrides the default build, check, install and dist phases.
bmake