diff --git a/doc/meson.build b/doc/meson.build
index ba16e20a0c8f952ca910ed7db7d5c71de6850e91..b7919fe7d8d9dfe100262dd29a3bce0165c07aac 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -1,4 +1,4 @@
-latexmk_exe = find_program('latexmk', required : false)
+latexmk_exe = find_program('latexmk', required : false, disabler : true)
 
 # We have to set TEXINPUTS because the current directory is not the source
 # directory when latexmk is invoked (and using the -cd option in combination