aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md10
-rw-r--r--docs/markdown/Release-notes-for-0.42.0.md6
2 files changed, 15 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index ebd7b39..0008e4f 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -474,11 +474,19 @@ Installs the specified man files from the source tree into system's man director
### install_subdir()
``` meson
- void install_subdir(subdir_name)
+ void install_subdir(subdir_name, install_dir : ..., exclude_files : ..., exclude_directories : ...)
```
Installs the entire given subdirectory and its contents from the source tree to the location specified by the keyword argument `install_dir`. Note that due to implementation issues this command deletes the entire target dir before copying the files, so you should never use `install_subdir` to install into two overlapping directories (such as `foo` and `foo/bar`) because if you do the behavior is undefined.
+The following keyword arguments are supported:
+
+- `install_dir`: the location to place the installed subdirectory.
+- `exclude_files`: a list of file names that should not be installed.
+ Names are interpreted as paths relative to the `subdir_name` location.
+- `exclude_directories`: a list of directory names that should not be installed.
+ Names are interpreted as paths relative to the `subdir_name` location.
+
### is_variable()
``` meson
diff --git a/docs/markdown/Release-notes-for-0.42.0.md b/docs/markdown/Release-notes-for-0.42.0.md
index 0fa27c3..2335e58 100644
--- a/docs/markdown/Release-notes-for-0.42.0.md
+++ b/docs/markdown/Release-notes-for-0.42.0.md
@@ -104,3 +104,9 @@ By default Meson adds the current source and build directories to the
header search path. On some rare occasions this is not desired. Setting
the `implicit_include_directories` keyword argument to `false` these
directories are not used.
+
+## Allow excluding files or directories from `install_subdir`
+
+The [`install_subdir`](Reference-manual.md#install_subdir) command accepts the
+new `exclude_files` and `exclude_directories` keyword arguments that allow
+specified files or directories to be excluded from the installed subdirectory.