1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-28 15:33:42 +02:00

Install the man file when using meson as a buildsystem

This fixes a regression with the Fedora package.

Change-Id: I881bd5002a842072ce9dadea033c51a2668f9e7c
Signed-off-by: Richard Hughes <richard@hughsie.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/38939
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Richard Hughes 2020-02-17 09:57:01 +00:00 committed by Patrick Georgi
parent 62027c8e37
commit 7aea04f709
2 changed files with 12 additions and 1 deletions

View File

@ -40,7 +40,7 @@
. \} . \}
. \} . \}
.. ..
.TH FLASHROM 8 "" "" .TH FLASHROM 8 "@MAN_DATE@" "@VERSION@" "@MAN_DATE@"
.SH NAME .SH NAME
flashrom \- detect, read, write, verify and erase flash chips flashrom \- detect, read, write, verify and erase flash chips
.SH SYNOPSIS .SH SYNOPSIS

View File

@ -321,6 +321,7 @@ endif
prefix = get_option('prefix') prefix = get_option('prefix')
sbindir = join_paths(prefix, get_option('sbindir')) sbindir = join_paths(prefix, get_option('sbindir'))
libdir = join_paths(prefix, get_option('libdir')) libdir = join_paths(prefix, get_option('libdir'))
mandir = join_paths(prefix, get_option('mandir'))
install_headers([ install_headers([
'libflashrom.h', 'libflashrom.h',
@ -394,6 +395,16 @@ pkgg.generate(
description : 'library to interact with flashrom', description : 'library to interact with flashrom',
) )
conf.set('VERSION', version)
conf.set('MAN_DATE', run_command('util/getrevision.sh', '--date', 'flashrom.8.tmpl').stdout().strip())
configure_file(
input : 'flashrom.8.tmpl',
output : 'flashrom.8',
configuration : conf,
install: true,
install_dir: join_paths(mandir, 'man8'),
)
flashrom_dep = declare_dependency( flashrom_dep = declare_dependency(
link_with : flashrom, link_with : flashrom,
include_directories : include_directories('.'), include_directories : include_directories('.'),