aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2019-07-03 13:32:24 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2019-07-10 15:01:18 -0400
commit12d4031f52a8c09014a840b2cf263478602618d0 (patch)
tree1db3d1a5008400e828f890e1e860d2724b4a4e79 /docs
parent716140ddb4f108dac2c2395e24e9ca17d68593d5 (diff)
downloadmeson-12d4031f52a8c09014a840b2cf263478602618d0.zip
meson-12d4031f52a8c09014a840b2cf263478602618d0.tar.gz
meson-12d4031f52a8c09014a840b2cf263478602618d0.tar.bz2
Add alias_target() function
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Reference-manual.md14
-rw-r--r--docs/markdown/snippets/alias_target.md12
2 files changed, 26 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 3793ce3..195c451 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -119,6 +119,20 @@ Note that all these options are also available while running the
`meson test` script for running tests instead of `ninja test` or
`msbuild RUN_TESTS.vcxproj`, etc depending on the backend.
+### alias_target
+
+``` meson
+runtarget alias_target(target_name, dep1, ...)
+```
+
+Since *0.52.0*
+
+This function creates a new top-level target. Like all top-level targets, this
+integrates with the selected backend. For instance, with Ninja you can
+run it as `ninja target_name`. This is a dummy target that does not execute any
+command, but ensures that all dependencies are built. Dependencies can be any
+build target (e.g. return value of executable(), custom_target(), etc)
+
### assert()
``` meson
diff --git a/docs/markdown/snippets/alias_target.md b/docs/markdown/snippets/alias_target.md
new file mode 100644
index 0000000..129730d
--- /dev/null
+++ b/docs/markdown/snippets/alias_target.md
@@ -0,0 +1,12 @@
+## alias_target
+
+``` meson
+runtarget alias_target(target_name, dep1, ...)
+```
+
+This function creates a new top-level target. Like all top-level targets, this
+integrates with the selected backend. For instance, with Ninja you can
+run it as `ninja target_name`. This is a dummy target that does not execute any
+command, but ensures that all dependencies are built. Dependencies can be any
+build target (e.g. return value of executable(), custom_target(), etc)
+