diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2021-09-09 23:29:19 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-13 12:53:48 +0200 |
commit | 915528910a1798fc685fd250dcf2ce9535498d00 (patch) | |
tree | 7252b4bcc18d507227de71cdf29f320c708c7f7c | |
parent | 577464ebb5da28f5872118ca362c3cab7460e4b8 (diff) |
build: Use the if_found feature
meson is able to process or discard a directory based on a
dependency object based on if it is found or not[0].
The `man` directory depends on the `help2man` program so it has been
changed to take advantage of this feature.
[0] https://mesonbuild.com/Release-notes-for-0-44-0.html#added-if_found-to-subdir
(cherry picked from commit 34cc1b10fef443fc8e1fe80adfc819f2d262308d)
-rw-r--r-- | meson.build | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meson.build b/meson.build index a38f781..079ca42 100644 --- a/meson.build +++ b/meson.build @@ -240,9 +240,7 @@ if enable_gtk_doc endif help2man = find_program('help2man', required: false) -if help2man.found() - subdir('docs/man') -endif +subdir('docs/man', if_found: help2man) configure_file( output: 'config.h', |