From: Simon McVittie Date: Fri, 24 Jun 2022 11:16:28 +0000 (+0100) Subject: doc: Build Ducktype documentation even if doxygen is not found X-Git-Tag: dbus-1.15.0~32^2~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b2d1d65f39addb82eb83bb4765d40b876f1f362;p=thirdparty%2Fdbus.git doc: Build Ducktype documentation even if doxygen is not found Signed-off-by: Simon McVittie --- diff --git a/doc/meson.build b/doc/meson.build index 254eff9f0..f7184791d 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -209,26 +209,26 @@ if doxygen.found() install_dir: docs_dir, ) endif +endif - if ducktype.found() and yelpbuild.found() - design_page = custom_target('dbus-api-design.page', - input: 'dbus-api-design.duck', - output: 'dbus-api-design.page', - command: [ ducktype, '-o', '@OUTPUT@', '@INPUT@' ], - ) - html_files += custom_target('dbus-api-design.html', - input: design_page, - output: [ - 'dbus-api-design.html', - 'yelp.js', - 'C.css', - 'highlight.pack.js', - ], - command: [ yelpbuild, 'html', '@INPUT@', '-o', meson.current_build_dir() ], - install: true, - install_dir: docs_dir, - ) - endif +if ducktype.found() and yelpbuild.found() + design_page = custom_target('dbus-api-design.page', + input: 'dbus-api-design.duck', + output: 'dbus-api-design.page', + command: [ ducktype, '-o', '@OUTPUT@', '@INPUT@' ], + ) + html_files += custom_target('dbus-api-design.html', + input: design_page, + output: [ + 'dbus-api-design.html', + 'yelp.js', + 'C.css', + 'highlight.pack.js', + ], + command: [ yelpbuild, 'html', '@INPUT@', '-o', meson.current_build_dir() ], + install: true, + install_dir: docs_dir, + ) endif if can_upload_docs