From 6c520090c6b2145632875b5ab4337724096f3329 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Tue, 13 Feb 2024 13:49:19 +0100 Subject: [PATCH] Add meson man pages install option Defaults to installing man pages. --- meson.build | 6 +++++- meson_options.txt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3b807ef..39f2fc1 100644 --- a/meson.build +++ b/meson.build @@ -80,4 +80,8 @@ if host_machine.system() == 'linux' endif subdir('src') -subdir('man') + +install_man_pages = get_option('install_man_pages') +if install_man_pages + subdir('man') +endif diff --git a/meson_options.txt b/meson_options.txt index ddb4225..51b7ca0 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,6 @@ option('bashcompletiondir', type : 'string', description : 'Directory for bash completion scripts ["no" disables]') +option('install_man_pages', + type : 'boolean', value: true, + description : 'Install man pages')