diff --git a/man/meson.build b/man/meson.build index 6f57501..dbafacd 100644 --- a/man/meson.build +++ b/man/meson.build @@ -1 +1,5 @@ -install_man('eiciel.1') +want_man = get_option('man') + +if want_man + install_man('eiciel.1') +endif diff --git a/meson.build b/meson.build index 906ab72..59c4e5a 100644 --- a/meson.build +++ b/meson.build @@ -84,6 +84,9 @@ subdir('img') # Documentation subdir('doc') +# Manpage(s) +subdir('man') + # GNOME post-install duties gnome.post_install(gtk_update_icon_cache : true) diff --git a/meson_options.txt b/meson_options.txt index 6ad4299..5eaefdf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,6 @@ +option('man', type : 'boolean', + value : 'true', + description : 'Install man page(s)') option('user-attributes', type : 'feature', value : 'enabled',