diff --git a/doc/meson.build b/doc/meson.build index dc93a16..5fc253c 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -27,21 +27,23 @@ version_xml = configure_file( input: 'version.xml.in', configuration: cdata) -gnome.gtkdoc('UPower', - main_xml: 'upower-docs.xml', - src_dir: meson.source_root() / 'libupower-glib', - dependencies: [ libupower_glib_dep ], - scan_args: ['--rebuild-types', '--rebuild-sections'], - content_files: [ - version_xml, - ifaces_refs, - 'man/UPower.xml', - 'man/upowerd.xml', - 'man/upower.xml', - '../COPYING', - ], - ignore_headers: [ - 'config.h', - ], - install: get_option('gtk-doc') -) +if get_option('gtk-doc') + gnome.gtkdoc('UPower', + main_xml: 'upower-docs.xml', + src_dir: meson.source_root() / 'libupower-glib', + dependencies: [ libupower_glib_dep ], + scan_args: ['--rebuild-types', '--rebuild-sections'], + content_files: [ + version_xml, + ifaces_refs, + 'man/UPower.xml', + 'man/upowerd.xml', + 'man/upower.xml', + '../COPYING', + ], + ignore_headers: [ + 'config.h', + ], + install: true + ) +endif