aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-04-01 07:03:35 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-04-01 07:03:35 -0400
commitcc8e67ce59c3b0274bc9f10cb287d5254aa74166 (patch)
tree2356936606e16970b05216355141125b4faa6d9f
parentfdcc5665904cc702db7a2e36de56b3f5eb29db7d (diff)
downloadmeson-cc8e67ce59c3b0274bc9f10cb287d5254aa74166.zip
meson-cc8e67ce59c3b0274bc9f10cb287d5254aa74166.tar.gz
meson-cc8e67ce59c3b0274bc9f10cb287d5254aa74166.tar.bz2
docs: fix inaccurate description of command targets
It isn't possible to have one target depend on a run_target, because those produce no outputs and are always out of date. But the docs didn't specify which types of target are valid here. Correct the docs to align with the implementation. Fixes #10198
-rw-r--r--docs/yaml/functions/custom_target.yaml2
-rw-r--r--docs/yaml/functions/run_target.yaml2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/yaml/functions/custom_target.yaml b/docs/yaml/functions/custom_target.yaml
index 40f16b0..f5a33b9 100644
--- a/docs/yaml/functions/custom_target.yaml
+++ b/docs/yaml/functions/custom_target.yaml
@@ -135,7 +135,7 @@ kwargs:
argument. Useful for adding regen dependencies.
depends:
- type: list[tgt]
+ type: list[build_tgt | custom_tgt]
description: |
Specifies that this target depends on the specified
target(s), even though it does not take any of them as a command
diff --git a/docs/yaml/functions/run_target.yaml b/docs/yaml/functions/run_target.yaml
index 9aecc31..66d6e8f 100644
--- a/docs/yaml/functions/run_target.yaml
+++ b/docs/yaml/functions/run_target.yaml
@@ -40,7 +40,7 @@ kwargs:
the first item will find that command in `PATH` and run it.
depends:
- type: list[tgt]
+ type: list[build_tgt | custom_tgt]
description: |
A list of targets that this target depends on but which
are not listed in the command array (because, for example, the