Document %doc relative path stripping

This commit is contained in:
Otto Urpelainen 2021-12-28 12:46:07 +02:00 committed by Florian Festi
parent 9b4c50dd67
commit d09ca2c103
1 changed files with 3 additions and 1 deletions

View File

@ -594,7 +594,9 @@ Used to explicitly own the directory itself but not it's contents.
Used to mark and/or install files as documentation. Can be used as a
regular attribute on an absolute path, or in "special" form on a path
relative to the build directory which causes the files to be installed
and packaged as documentation.
and packaged as documentation. The special form strips all but the last
path component. Thus `%doc path/to/docfile` installs `docfile` in the
documentation path.
Can also be used to filter out documentation from installations where
space is tight.