summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrey Malets <andrey.malets@gmail.com>2014-09-06 17:28:05 (GMT)
committerAndrey Malets <andrey.malets@gmail.com>2014-09-06 17:31:39 (GMT)
commit45aa2085f984b707ed3f8543317eb4952af0158f (patch)
tree10785fbfc9e3279326b837498aa972f7f64a57cc /doc
parent5758dc13dd9b943ed584bd0cbaa520b2207a09f5 (diff)
downloadNinja-45aa2085f984b707ed3f8543317eb4952af0158f.zip
Ninja-45aa2085f984b707ed3f8543317eb4952af0158f.tar.gz
Ninja-45aa2085f984b707ed3f8543317eb4952af0158f.tar.bz2
Document target^ syntax.
Added a note into the documentation about interesting target^ syntax
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.asciidoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/manual.asciidoc b/doc/manual.asciidoc
index fcf3db3..07ecfcc 100644
--- a/doc/manual.asciidoc
+++ b/doc/manual.asciidoc
@@ -180,6 +180,12 @@ Run `ninja`. By default, it looks for a file named `build.ninja` in
the current directory and builds all out-of-date targets. You can
specify which targets (files) to build as command line arguments.
+There is also a special syntax `target^` for specifying a target
+as the first output of some rule containing the source you put in
+the command line, if one exists. For example, if you specify target as
+`foo.c^` then `foo.o` will get built (assuming you have those targets
+in your build files).
+
`ninja -h` prints help output. Many of Ninja's flags intentionally
match those of Make; e.g `ninja -C build -j 20` changes into the
`build` directory and runs 20 build commands in parallel. (Note that