aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-05-19 13:36:04 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-03 21:06:23 +0000
commit7e08e958c0e3cdf7e6769027d8eeff5925b69d73 (patch)
tree38ca4d11be72f46402a0815fff12fa73174cb49e /docs
parent50aabc01293afc4778a7c881ffa0c3a531c39dbe (diff)
downloadmeson-7e08e958c0e3cdf7e6769027d8eeff5925b69d73.zip
meson-7e08e958c0e3cdf7e6769027d8eeff5925b69d73.tar.gz
meson-7e08e958c0e3cdf7e6769027d8eeff5925b69d73.tar.bz2
Allow substitutions in custom_target() depfile:
Allow substitutions in custom_target() depfile: as well as in command:
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Reference-manual.md3
-rw-r--r--docs/markdown/snippets/custom-target-depends.md4
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 9b1c96f..a5733a2 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -285,6 +285,9 @@ the following special string substitutions:
- `@PLAINNAME@`: the input filename, without a path
- `@BASENAME@`: the input filename, with extension removed
+The `depfile` keyword argument also accepts the `@BASENAME@` and `@PLAINNAME@`
+substitutions. *(since 0.47)*
+
The returned object also has methods that are documented in the
[object methods section](#custom-target-object) below.
diff --git a/docs/markdown/snippets/custom-target-depends.md b/docs/markdown/snippets/custom-target-depends.md
new file mode 100644
index 0000000..e2b2ed7
--- /dev/null
+++ b/docs/markdown/snippets/custom-target-depends.md
@@ -0,0 +1,4 @@
+## Substitutions in `custom_target(depends:)`
+
+The `depfile` keyword argument to `custom_target` now accepts the `@BASENAME@`
+and `@PLAINNAME@` substitutions.