summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2017-09-20 06:55:54 +0000
committerGitHub <noreply@github.com>2017-09-20 06:55:54 +0000
commit140c463b01f2b229e4f0ee97ad0a74678dc7b7d6 (patch)
tree28603346d0644f4f952e7e52387ca51e00219a94
parent898b723ee5875ee62c9c9c955f7146e847c1fa6a (diff)
downloadmeson-140c463b01f2b229e4f0ee97ad0a74678dc7b7d6.tar.gz
Add detail to the command: kwarg of custom targets
-rw-r--r--docs/markdown/Reference-manual.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 2025ab5f8..7afd32bd9 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -201,10 +201,15 @@ following.
to the target file. Note that your command argument list may not
contain `@OUTPUT@` when capture mode is active.
- `command` command to run to create outputs from inputs. The command
- may be strings or the return of `find_program()` or `executable()`
- (note: always specify commands in array form `['commandname',
+ may be strings or the return value of functions that return file-like
+ objects such as [`find_program()`](#find_program),
+ [`executable()`](#executable), [`configure_file()`](#configure_file),
+ [`files()`](#files), [`custom_target()`](#custom_target), etc.
+ Meson will automatically insert the appropriate dependencies on
+ targets and files listed in this keyword argument.
+ Note: always specify commands in array form `['commandname',
'-arg1', '-arg2']` rather than as a string `'commandname -arg1
- -arg2'` as the latter will *not* work)
+ -arg2'` as the latter will *not* work.
- `depend_files` files ([`string`](#string-object),
[`files()`](#files), or [`configure_file()`](#configure_file)) that
this target depends on but are not listed in the `command` keyword