[libvirt-dbus PATCH 8/9] meson: Install documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



People who install the RPM packages already get this, but it's
good practice so let's make it happen for those who install from
source as well.

The process is straightforward, but we have to be a bit careful
with AUTHORS because this specific file is found in different
directories depending on whether we're building from git or from
a release.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 meson.build | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/meson.build b/meson.build
index 7518e94..9395bc4 100644
--- a/meson.build
+++ b/meson.build
@@ -12,6 +12,7 @@ project(
 prefix = get_option('prefix')
 datadir = prefix / get_option('datadir')
 sbindir = prefix / get_option('sbindir')
+set_variable('docdir', datadir / 'doc/libvirt-dbus')
 
 opt_dirs = [
     'dbus_interfaces',
@@ -258,6 +259,7 @@ if git
         configuration: { 'contributorslist': authors.stdout() },
         input: 'AUTHORS.rst.in',
         output: 'AUTHORS.rst',
+        install_dir: docdir,
     )
 
     foreach file : [ 'libvirt-dbus.spec', 'AUTHORS.rst' ]
@@ -266,6 +268,22 @@ if git
 endif
 
 
+# Install documentation
+
+docs = [
+    'COPYING',
+    'NEWS.rst',
+]
+if not git
+    docs += ['AUTHORS.rst']
+endif
+
+install_data(
+    docs,
+    install_dir: docdir,
+)
+
+
 # Include sub-directories
 
 subdir('data')
-- 
2.25.3





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux