diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-07-31 16:21:03 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-08-08 13:51:36 +0100 |
commit | 9edd66422b257e044509a827a871781ee2bae92b (patch) | |
tree | 685cdba2725c55d1ee324700b6b70b5ae5333390 | |
parent | 253e01c0523da55514f1c8ff923b2fdd6338807f (diff) | |
download | colord-9edd66422b257e044509a827a871781ee2bae92b.tar.gz |
Conditionally generate man pages
Not all build environments are interested in man pages, or are willing
to install docbook2man and its dependencies in order to generate man
pages.
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | meson.build | 4 | ||||
-rw-r--r-- | meson_options.txt | 1 |
3 files changed, 7 insertions, 2 deletions
@@ -72,6 +72,7 @@ while (($# > 0)); do --disable-bash-completion) enable_bash_completion='-Denable-bash-completion=false';; --disable-argyllcms-sensor) enable_argyllcms_sensor='-Denable-argyllcms-sensor=false';; --disable-installed-tests) enable_installed_tests='-Denable-installed-tests=false';; + --disable-man) enable_man='-Denable-man=false';; *) echo -e "\e[1;33mINFO\e[0m: Ignoring unknown option '$1'";; esac shift @@ -117,7 +118,7 @@ echo " libdir:...... ${libdir}" echo " mandir:...... ${mandir}" echo " includedir:.. ${includedir}" echo " additional:.." -echo " - ${enable_print_profiles} ${enable_argyllcms_sensor} ${enable_bash_completion} ${enable_installed_tests}" +echo " - ${enable_print_profiles} ${enable_argyllcms_sensor} ${enable_bash_completion} ${enable_installed_tests} ${enable_man}" exec ${MESON} \ --prefix=${prefix} \ @@ -133,6 +134,7 @@ exec ${MESON} \ ${enable_argyllcms_sensor} \ ${enable_bash_completion} \ ${enable_installed_tests} \ + ${enable_man} \ ${srcdir} # vim: ai ts=8 noet sts=2 ft=sh diff --git a/meson.build b/meson.build index d4bfdf1..5c3d32c 100644 --- a/meson.build +++ b/meson.build @@ -242,7 +242,9 @@ subdir('doc') subdir('data') # this needs data/profiles/*.icc -subdir('man') +if get_option('enable-man') + subdir('man') +endif subdir('policy') subdir('rules') subdir('src') diff --git a/meson_options.txt b/meson_options.txt index 1a49d0d..21d3735 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,3 +9,4 @@ option('enable-print-profiles', type : 'boolean', value : false, description : ' option('enable-tests', type : 'boolean', value : true, description : 'Build self tests') option('enable-installed-tests', type : 'boolean', value : false, description : 'Install tests') option('with-daemon-user', type : 'string', value : 'root', description : 'User for running the colord daemon') +option('enable-man', type : 'boolean', value : true, description : 'Generate man pages') |