From ea272b5e88c02117a2a3ef7e12d221bd196844dc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Oct 2021 15:48:18 -0400 Subject: Isolate man pages and build HTML versions with mandoc if possible The HTML versions are mainly useful for generating the online documentation as part of a CI pipeline. They are installed anyway, which is redundant for systems with a man page reader, but handy elsewhere. --- meson.build | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 63a9ece5..352c1734 100644 --- a/meson.build +++ b/meson.build @@ -140,6 +140,9 @@ if host_machine.system() != 'windows' ] endif +# Programs used by the build +mandoc = find_program('mandoc', required: false) + # Determine library type and the flags needed to build it library_name = versioned_name if get_option('default_library') == 'both' @@ -243,12 +246,6 @@ pkg.generate( # Build command line tools if get_option('tools') subdir('tools') - - if not get_option('docs').disabled() - install_man('doc/serd-filter.1') - install_man('doc/serd-pipe.1') - install_man('doc/serd-sort.1') - endif endif # Install header to a versioned include directory -- cgit v1.2.1