[v2,2/6] build: skip processing docs folder if docs disabled
diff mbox series

Message ID 20200109120801.500394-3-bruce.richardson@intel.com
State Superseded, archived
Headers show
Series
  • [v2,1/6] kernel/linux/kni: fix meson warning about console keyword
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Jan. 9, 2020, 12:07 p.m. UTC
While each target is set to be ignored if the docs are disabled in the
meson build, there is little reason to process the docs folder at all.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 doc/meson.build | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Aaron Conole Jan. 9, 2020, 2:18 p.m. UTC | #1
Bruce Richardson <bruce.richardson@intel.com> writes:

> While each target is set to be ignored if the docs are disabled in the
> meson build, there is little reason to process the docs folder at all.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---

Makes sense.

Acked-by: Aaron Conole <aconole@redhat.com>

Patch
diff mbox series

diff --git a/doc/meson.build b/doc/meson.build
index c5410d85d..c49ec8476 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -1,6 +1,10 @@ 
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
 
+if not get_option('enable_docs')
+	subdir_done()
+endif
+
 doc_targets = []
 doc_target_names = []
 subdir('api')