From 4b44f61c53b2f29bc3f6cec3aa2f5242ecd18ebf Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Fri, 30 Nov 2018 14:49:46 +0000 Subject: Documentation: Add linkcheck target Sphinx provides a run-target to verify external links specified in the documentation. This requires an active connection to be able to validate the links. Add a meson target to integrate the linkcheck facility into our build and test system. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- Documentation/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Documentation/meson.build') diff --git a/Documentation/meson.build b/Documentation/meson.build index 9136506f..c4e98924 100644 --- a/Documentation/meson.build +++ b/Documentation/meson.build @@ -62,4 +62,10 @@ if sphinx.found() build_by_default : true, install : true, install_dir : doc_install_dir) + + custom_target('documentation-linkcheck', + command: [sphinx, '-W', '-b', 'linkcheck', meson.current_source_dir(), '@OUTPUT@'], + build_always_stale: true, + input: docs_sources, + output: 'linkcheck') endif -- cgit v1.2.1