ninja

A Build system designed to be fast.

TLDR

Build in the current directory

$ ninja
copy

Build a program in a given directory

$ ninja -C [path/to/directory]
copy

Show targets (e.g. install and uninstall)

$ ninja -t targets
copy

Show help

$ ninja -h
copy

DESCRIPTION

usage: ninja [options] [targets...]

if targets are unspecified, builds the 'default' target (see manual).

options:

--version

print ninja version ("1.10.1")

-v, --verbose

show all command lines while building

-C DIR

change to DIR before doing anything else

-f FILE

specify input build file [default=build.ninja]

-j N

run N jobs in parallel (0 means infinity) [default=#CPUs]

-k N

keep going until N jobs fail (0 means infinity) [default=1]

-l N

do not start new jobs if the load average is greater than N

-n

dry run (don't run commands but act like they succeeded)

-d MODE

enable debugging (use '-d list' to list modes)

-t TOOL

run a subtool (use '-t list' to list subtools)

terminates toplevel options; further flags are passed to the tool

-w FLAG

adjust warnings (use '-w list' to list warnings)

AUTHOR

This manual page was written by Gary Kramlich <grim@reaperworld.com> for the Debian GNU/Linux system (but may be used by others).

Copied to clipboard
digitalocean