Skip to content

Commit 2df9ac3

Browse files
Martin Belangerigaw
authored andcommitted
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 <[email protected]>
1 parent 4fa9505 commit 2df9ac3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

libnvme/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ if want_libnvme
3838
if get_option('examples')
3939
subdir('examples')
4040
endif
41+
42+
subdir('doc')
4143
else
4244
# Fallback to using a pre-installed libnvme (if available)
4345
if std_prefix
@@ -59,4 +61,3 @@ else
5961
endif
6062
endif
6163

62-
subdir('doc')

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,9 @@ if want_nvme
596596
'completions/_nvme',
597597
install_dir: datadir / 'zsh/site-functions',
598598
)
599-
endif
600599

601-
subdir('Documentation')
600+
subdir('Documentation')
601+
endif
602602

603603

604604
################################################################################

0 commit comments

Comments
 (0)