ninja:tldr:fef0a
The command ninja -t targets
is used to display the list of build targets in a Ninja build system.
Ninja is a build system similar to Make or CMake, used to efficiently build projects by automatically generating build scripts based on a project's dependency graph. In Ninja, a build target refers to a particular file or task that needs to be built or executed as part of the build process.
When you run the ninja -t targets
command, it instructs Ninja to print a list of all available build targets in the current project. This can be useful to understand what specific files or tasks can be built or executed using Ninja. The output typically includes the names of the targets and may provide additional relevant information such as dependencies or actions associated with each target.