diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-31 23:35:45 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-09-01 15:42:40 -0400 |
commit | dc51740e2cdee171ac6ebc7ed261e5c08730c9a9 (patch) | |
tree | 2dc7739684b815b20c05797b6f1c2a082f362f73 | |
parent | 10cfc321f8c47d86a6039ddc3f0429f34bf68bf8 (diff) | |
download | meson-dc51740e2cdee171ac6ebc7ed261e5c08730c9a9.zip meson-dc51740e2cdee171ac6ebc7ed261e5c08730c9a9.tar.gz meson-dc51740e2cdee171ac6ebc7ed261e5c08730c9a9.tar.bz2 |
add release note formally allowing run_target in an alias
We've now fixed it so it works, and it provides useful functionality,
e.g. creating a custom target that builds multiple gettext domains in
one action.
-rw-r--r-- | docs/markdown/snippets/run_target-depends.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/markdown/snippets/run_target-depends.md b/docs/markdown/snippets/run_target-depends.md new file mode 100644 index 0000000..11a459c --- /dev/null +++ b/docs/markdown/snippets/run_target-depends.md @@ -0,0 +1,20 @@ +## `run_target` can now be used as a dependency + +A `run_target()` can now be saved in a variable and reused as a dependency in +an `alias_target()`. This can be used to create custom alias rules that ensure +multiple other targets are run, even if those targets don't produce output +files. + +For example: + +``` +i18n = import('i18n') + +all_pot_targets = [] + +foo_i18n = i18n.gettext('foo') + +all_pot_targets += foo_i18n[1] + +alias_target('all-pot', all_pot_targets) +``` |