summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2021-09-09 23:29:19 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2021-09-13 11:05:44 +0200
commit34cc1b10fef443fc8e1fe80adfc819f2d262308d (patch)
treeb9f7919e95d2927752910726b3e0da86f92ce8d7
parent7fe355d4bfc36ba947843080f4e212349153c9fd (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
-rw-r--r--meson.build4
1 files changed, 1 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 4db4500..bbe753d 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',