No longer attempts to run yelp-build from the docs build if it wasn't found previously.
authorOmari Stephens <xsdg@xsdg.org>
Wed, 27 Jul 2022 17:49:47 +0000 (17:49 +0000)
committerColin Clark <colin.clark@cclark.uk>
Thu, 28 Jul 2022 14:34:19 +0000 (15:34 +0100)
doc/meson.build

index ac847fe..fb7f8d6 100644 (file)
@@ -19,8 +19,11 @@ iconsdir = join_paths(meson.current_source_dir(), 'icons/')
 guideindex_html = join_paths(destdir, 'GuideIndex.html')
 guideindex_ln = join_paths(destdir, 'index.html')
 
-run_command(gnome_doc_tool, 'html', '-o', destdir, '-p', iconsdir, guideindex_xml, check : false)
-run_command(find_program('ln'), '-s', '-f', guideindex_html, guideindex_ln, check : false)
+# Not-found notification already handled by ../meson.build
+if gnome_doc_tool.found()
+    run_command(gnome_doc_tool, 'html', '-o', destdir, '-p', iconsdir, guideindex_xml, check : false)
+    run_command(find_program('ln'), '-s', '-f', guideindex_html, guideindex_ln, check : false)
+endif
 
 install_subdir(destdir, install_dir : helpdir, exclude_directories : 'lua-api/latex')