summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-10 15:15:55 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-10 15:15:55 (GMT)
commite01c576338ae448d9cbf18cc065567fde5c89f3b (patch)
tree746365b513449a7f40add5a3c0da42fc8eb3f9ea /Help
parent627ffb4bd768609019014828d7480c22997cda0c (diff)
parent0278989405eea53ca7e5f1bfa6af9aea7a0b49c5 (diff)
downloadCMake-e01c576338ae448d9cbf18cc065567fde5c89f3b.zip
CMake-e01c576338ae448d9cbf18cc065567fde5c89f3b.tar.gz
CMake-e01c576338ae448d9cbf18cc065567fde5c89f3b.tar.bz2
Merge topic 'ninja-directory-targets'
02789894 Ninja: Add `$subdir/{test,install,package}` targets a88c99f1 Ninja: Simplify computation of GLOBAL_TARGET outputs
Diffstat (limited to 'Help')
-rw-r--r--Help/generator/Ninja.rst17
-rw-r--r--Help/release/dev/ninja-directory-targets.rst8
2 files changed, 22 insertions, 3 deletions
diff --git a/Help/generator/Ninja.rst b/Help/generator/Ninja.rst
index d94e5f6..ef0e28b 100644
--- a/Help/generator/Ninja.rst
+++ b/Help/generator/Ninja.rst
@@ -7,6 +7,17 @@ A build.ninja file is generated into the build tree. Recent versions
of the ninja program can build the project through the "all" target.
An "install" target is also provided.
-For each subdirectory ``sub/dir`` of the project an additional target
-named ``sub/dir/all`` is generated that depends on all targets required
-by that subdirectory.
+For each subdirectory ``sub/dir`` of the project, additional targets
+are generated:
+
+``sub/dir/all``
+ Depends on all targets required by the subdirectory.
+
+``sub/dir/install``
+ Runs the install step in the subdirectory, if any.
+
+``sub/dir/test``
+ Runs the test step in the subdirectory, if any.
+
+``sub/dir/package``
+ Runs the package step in the subdirectory, if any.
diff --git a/Help/release/dev/ninja-directory-targets.rst b/Help/release/dev/ninja-directory-targets.rst
new file mode 100644
index 0000000..c4269d8
--- /dev/null
+++ b/Help/release/dev/ninja-directory-targets.rst
@@ -0,0 +1,8 @@
+ninja-directory-targets
+-----------------------
+
+* The :generator:`Ninja` generator learned to produce phony targets
+ of the form ``sub/dir/{test,install,package}`` to drive the build
+ of a subdirectory installation, test or packaging target.
+ This is equivalent to ``cd sub/dir; make {test,install,package}``
+ with :ref:`Makefile Generators`.