aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-07-11 00:34:40 +0300
committerGitHub <noreply@github.com>2019-07-11 00:34:40 +0300
commit19cda6b7c96cc3a63796549764261306e1db94b4 (patch)
tree6d47683818b05b2eee6a9f9dfb92c92463ac26cc /docs
parent30e42009c03cbb53e3462e1c4ee29af666474742 (diff)
parentd8b3af00aca3a2825d199367d588a4b24e5ab779 (diff)
downloadmeson-19cda6b7c96cc3a63796549764261306e1db94b4.zip
meson-19cda6b7c96cc3a63796549764261306e1db94b4.tar.gz
meson-19cda6b7c96cc3a63796549764261306e1db94b4.tar.bz2
Merge pull request #5606 from xclaesse/alias_target
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)
+