|
|
0161dc |
From b820207aeff98b5ccf21649036259333fd0e0175 Mon Sep 17 00:00:00 2001
|
|
|
0161dc |
From: Richard Hughes <richard@hughsie.com>
|
|
|
0161dc |
Date: Mon, 17 Feb 2020 09:57:01 +0000
|
|
|
0161dc |
Subject: [PATCH] Install the man file when using meson as a buildsystem
|
|
|
0161dc |
|
|
|
0161dc |
This fixes a regression with the Fedora package.
|
|
|
0161dc |
|
|
|
0161dc |
Change-Id: I881bd5002a842072ce9dadea033c51a2668f9e7c
|
|
|
0161dc |
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
|
0161dc |
---
|
|
|
0161dc |
meson.build | 9 +++++++++
|
|
|
0161dc |
1 file changed, 9 insertions(+)
|
|
|
0161dc |
|
|
|
0161dc |
diff --git a/meson.build b/meson.build
|
|
|
0161dc |
index 375089c3..df39290b 100644
|
|
|
0161dc |
--- a/meson.build
|
|
|
0161dc |
+++ b/meson.build
|
|
|
0161dc |
@@ -299,6 +299,7 @@ endif
|
|
|
0161dc |
prefix = get_option('prefix')
|
|
|
0161dc |
sbindir = join_paths(prefix, get_option('sbindir'))
|
|
|
0161dc |
libdir = join_paths(prefix, get_option('libdir'))
|
|
|
0161dc |
+mandir = join_paths(prefix, get_option('mandir'))
|
|
|
0161dc |
|
|
|
0161dc |
install_headers([
|
|
|
0161dc |
'libflashrom.h',
|
|
|
0161dc |
@@ -372,6 +373,14 @@ pkgg.generate(
|
|
|
0161dc |
description : 'library to interact with flashrom',
|
|
|
0161dc |
)
|
|
|
0161dc |
|
|
|
0161dc |
+configure_file(
|
|
|
0161dc |
+ input : 'flashrom.8.tmpl',
|
|
|
0161dc |
+ output : 'flashrom.8',
|
|
|
0161dc |
+ copy: true,
|
|
|
0161dc |
+ install: true,
|
|
|
0161dc |
+ install_dir: join_paths(mandir, 'man8'),
|
|
|
0161dc |
+)
|
|
|
0161dc |
+
|
|
|
0161dc |
flashrom_dep = declare_dependency(
|
|
|
0161dc |
link_with : flashrom,
|
|
|
0161dc |
include_directories : include_directories('.'),
|
|
|
0161dc |
--
|
|
|
0161dc |
2.24.1
|
|
|
0161dc |
|