Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame^] | 1 | From a04fd2c8ac9e0f7a6fc17f02b2a95227b3d0aae4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 31 Mar 2020 16:06:39 +0200 |
| 4 | Subject: [PATCH] modulemd: generate the manpage only if the feature is enabled |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 8 | --- |
| 9 | modulemd/meson.build | 2 ++ |
| 10 | 1 file changed, 2 insertions(+) |
| 11 | |
| 12 | diff --git a/modulemd/meson.build b/modulemd/meson.build |
| 13 | index 9ef1902..9f71e72 100644 |
| 14 | --- a/modulemd/meson.build |
| 15 | +++ b/modulemd/meson.build |
| 16 | @@ -494,6 +494,7 @@ if with_docs |
| 17 | ) |
| 18 | endif |
| 19 | |
| 20 | +if with_manpages == 'enabled' |
| 21 | help2man_opts = [ |
| 22 | '--no-info', |
| 23 | '--section=1', |
| 24 | @@ -506,3 +507,4 @@ custom_target( |
| 25 | ], |
| 26 | install: true, |
| 27 | install_dir: join_paths(get_option('mandir'), 'man1')) |
| 28 | +endif |