Forrest logo
back to the ninja tool

ninja:tldr:fef0a

ninja: Show targets (e.g. `install` and `uninstall`).
$ ninja -t targets
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ninja tool