Skip to content

Commit

Permalink
add release note formally allowing run_target in an alias
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eli-schwartz committed Sep 1, 2021
1 parent 10cfc32 commit dc51740
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/markdown/snippets/run_target-depends.md
Original file line number Diff line number Diff line change
@@ -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)
```

0 comments on commit dc51740

Please sign in to comment.