]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
meson: remove build_by_default instances in man/
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 9 Nov 2025 23:12:01 +0000 (23:12 +0000)
committerLucas De Marchi <demarchi@kernel.org>
Tue, 3 Feb 2026 04:59:03 +0000 (22:59 -0600)
With earlier meson versions (pre 0.50) build_by_default and install
didn't have great integration. With newer meson versions, as the former
is undefined the latter will control both.

More importantly, the whole meson.build is included only on
get_option('manpages').

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <demarchi@kernel.org>
Link: https://github.com/kmod-project/kmod/pull/pull/400
Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
man/meson.build

index a9eb3cf004e52c531316636404e295282876aade..605510eac43c49ff544145ccc3b95172f438a611 100644 (file)
@@ -29,7 +29,6 @@ foreach tuple : _man_pages
     input : '@0@.@1@.scd'.format(man, section),
     output : '@0@.@1@'.format(man, section),
     capture : true,
-    build_by_default : get_option('manpages'),
     install : true,
     install_dir : get_option('mandir') / 'man@0@'.format(section)
   )
@@ -50,7 +49,6 @@ foreach tuple : _man_aliases
     command : ['echo', '.so @0@'.format(dest)],
     output : '@0@.@1@'.format(man, section),
     capture : true,
-    build_by_default : get_option('manpages'),
     install : true,
     install_dir : get_option('mandir') / 'man@0@'.format(section)
   )