Skip to content

Commit

Permalink
Describe array values in install_dir. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane authored and dcbaker committed Jul 1, 2019
1 parent 866d105 commit 33aee8d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/markdown/Installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,24 @@ command in the build tree:
```console
$ meson install --no-rebuild --only-changed
```

## Finer control over install locations

Sometimes it is necessary to only install a subsection of output files
or install them in different directories. This can be done by
specifying `install_dir` as an array rather than a single string. The
array must have as many items as there are outputs and each entry
specifies how the corresponding output file should be installed. For
example:

```meson
custom_target(...
output: ['file1', 'file2', 'file3'],
install_dir: ['path1', false, 'path3'],
...
)
```

In this case `file1` would be installed to `/prefix/path1/file1`,
`file2` would not be installed at all and `file3` would be installed
to `/prefix/path3/file3'.

0 comments on commit 33aee8d

Please sign in to comment.