aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Installing.md
diff options
context:
space:
mode:
authorAleksey Filippov <alekseyf@google.com>2018-03-12 01:12:11 +0000
committerAleksey Filippov <alekseyf@google.com>2018-03-19 22:13:34 +0000
commitd63fff06d9f22c8cad2a7e70b5210f5583feb41f (patch)
tree2dc64b6509f89ff8b22c30c47848ccda4529110c /docs/markdown/Installing.md
parent6994ec56e642e0d9980002215398bba1894b3c30 (diff)
downloadmeson-d63fff06d9f22c8cad2a7e70b5210f5583feb41f.zip
meson-d63fff06d9f22c8cad2a7e70b5210f5583feb41f.tar.gz
meson-d63fff06d9f22c8cad2a7e70b5210f5583feb41f.tar.bz2
Add install_data() rename documentation
Diffstat (limited to 'docs/markdown/Installing.md')
-rw-r--r--docs/markdown/Installing.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/Installing.md b/docs/markdown/Installing.md
index 4670544..b8e6a81 100644
--- a/docs/markdown/Installing.md
+++ b/docs/markdown/Installing.md
@@ -29,6 +29,19 @@ install_man('foo.1') # -> share/man/man1/foo.1.gz
install_data('datafile.dat', install_dir : join_paths(get_option('datadir'), 'progname')) # -> share/progname/datafile.dat
```
+`install_data()` supports rename of the file *since 0.46.0*.
+
+```meson
+# file.txt -> {datadir}/{projectname}/new-name.txt
+install_data('file.txt', rename : 'new-name.txt')
+
+# file1.txt -> share/myapp/dir1/data.txt
+# file2.txt -> share/myapp/dir2/data.txt
+install_data(['file1.txt', 'file2.txt'],
+ rename : ['dir1/data.txt', 'dir2/data.txt'],
+ install_dir : 'share/myapp')
+```
+
Sometimes you want to copy an entire subtree directly. For this use case there is the `install_subdir` command, which can be used like this.
```meson