diff options
-rw-r--r-- | docs/meson.build | 10 | ||||
-rw-r--r-- | meson.build | 6 | ||||
-rw-r--r-- | meson_options.txt | 4 |
3 files changed, 11 insertions, 9 deletions
diff --git a/docs/meson.build b/docs/meson.build index 76e59797e..e43b12a8b 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1,3 +1,7 @@ -subdir('tools') -subdir('manpages') -subdir('reference') +if get_option('man') + subdir('manpages') +endif +if get_option('docs') + subdir('tools') + subdir('reference') +endif diff --git a/meson.build b/meson.build index b282d526a..6dc2a1655 100644 --- a/meson.build +++ b/meson.build @@ -325,11 +325,7 @@ typelib_dir = gobject_introspection.get_pkgconfig_variable('typelibdir', subdir('src') subdir('data') - -if get_option('docs') - subdir('docs') -endif - +subdir('docs') subdir('examples') subdir('utils') diff --git a/meson_options.txt b/meson_options.txt index 9443b8b1e..5173189d9 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,11 +1,13 @@ option('docs', type: 'boolean', value: true, - description: 'Enable the documentation') + description: 'Generate API documentation with gtk-doc') option('fts', type: 'boolean', value: true, description: 'Enable the Tracker full-text search feature') option('functional_tests', type: 'boolean', value: true, description: 'Enable the Tracker functional test suite') option('journal', type: 'boolean', value: true, description: 'Enable database journal backup mechanism') +option('man', type: 'boolean', value: true, + description: 'Install man pages') option('network_manager', type: 'feature', value: 'auto', description: 'Connection detection through NetworkManager') |