From a3177fb70ff9e059f7fd91118f8690f4c2262fc4 Mon Sep 17 00:00:00 2001 From: Martin Belanger Date: Mon, 9 Mar 2026 14:00:44 -0400 Subject: [PATCH] docs: Make documentation build depend on -Dlibnvme and -Dnvme Tie documentation generation to the meson options -Dlibnvme and -Dnvme so the build can selectively generate documentation for libnvme, nvme, or both. Signed-off-by: Martin Belanger --- libnvme/meson.build | 3 ++- meson.build | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libnvme/meson.build b/libnvme/meson.build index 8d6a5681fc..bbfb595842 100644 --- a/libnvme/meson.build +++ b/libnvme/meson.build @@ -38,6 +38,8 @@ if want_libnvme if get_option('examples') subdir('examples') endif + + subdir('doc') else # Fallback to using a pre-installed libnvme (if available) if std_prefix @@ -59,4 +61,3 @@ else endif endif -subdir('doc') diff --git a/meson.build b/meson.build index 64359c6d16..772e517e3b 100644 --- a/meson.build +++ b/meson.build @@ -596,9 +596,9 @@ if want_nvme 'completions/_nvme', install_dir: datadir / 'zsh/site-functions', ) -endif -subdir('Documentation') + subdir('Documentation') +endif ################################################################################