summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/alias_target.md
blob: 129730d035693fd490266bd4145cf4f104fe2c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)