Generate build.ninja to the build directory