Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 2 #3

Merged
merged 18 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions doc/manual.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,47 @@ output files are out of date.
rebuild those targets.
_Available since Ninja 1.11._

`multi-inputs`:: print one or more sets of inputs required to build targets.
Each line will consist of a target, a delimiter, an input and a terminator character.
The list produced by the tool can be helpful if one would like to know which targets
that are affected by a certain input.
+
The output will be a series of lines with the following elements:
+
----
<target> <delimiter> <input> <terminator>
----
+
The default `<delimiter>` is a single TAB character.
The delimiter can be modified to any string using the `--delimiter` argument.
+
The default `<terminator>` is a line terminator (i.e. `\n` on Posix and `\r\n` on Windows).
The terminator can be changed to `\0` by using the `--print0` argument.
+
----
----
+
Example usage of the `multi-inputs` tool:
+
----
ninja -t multi-inputs target1 target2 target3
----
+
Example of produced output from the `multi-inputs` tool:
+
----
target1 file1.c
target2 file1.c
target2 file2.c
target3 file1.c
target3 file2.c
target3 file3.c
----
+
_Note that a given input may appear for several targets if it is used by more
than one targets._
_Available since Ninja 1.13._

`clean`:: remove built files. By default, it removes all built files
except for those created by the generator. Adding the `-g` flag also
removes built files created by the generator (see <<ref_rule,the rule
Expand All @@ -289,6 +330,11 @@ http://clang.llvm.org/docs/JSONCompilationDatabase.html[JSON format] expected
by the Clang tooling interface.
_Available since Ninja 1.2._

`compdb-targets`:: like `compdb`, but takes a list of targets instead of rules,
and expects at least one target. The resulting compilation database contains
all commands required to build the indicated targets, and _only_ those
commands.

`deps`:: show all dependencies stored in the `.ninja_deps` file. When given a
target, show just the target's dependencies. _Available since Ninja 1.4._

Expand Down
13 changes: 13 additions & 0 deletions doc/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,16 @@ div.chapter {
p {
margin-top: 0;
}

/* The following applies to the left column of a [horizontal] labeled list: */
table.horizontal > tbody > tr > td:nth-child(1) {

/* prevent the insertion of a line-break in the middle of a label: */
white-space: nowrap;

/* insert a little horizontal padding between the two columns: */
padding-right: 1.5em;

/* right-justify labels: */
text-align: end;
}
112 changes: 0 additions & 112 deletions misc/ninja-mode.el

This file was deleted.

Loading
Loading