aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/alias_target.md12
1 files changed, 12 insertions, 0 deletions
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)
+