diff options
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 3 | ||||
-rw-r--r-- | docs/markdown/snippets/custom-target-depends.md | 4 |
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. |