[v4,2/6] build: skip processing docs folder if docs disabled
Checks
Commit Message
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>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Luca Boccassi <bluca@debian.org>
---
doc/meson.build | 4 ++++
1 file changed, 4 insertions(+)
@@ -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')