aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-03 09:00:33 -0400
committerDavid Robillard <d@drobilla.net>2023-04-06 07:19:10 -0400
commit9e2f2b436a6eeefcf22434afa15193d8831b40c0 (patch)
treee0ebbcba8671ec5398ade5a5c6e91e2f16263ba6 /doc
parent43cefdcd3e7aac63d9009d927ed21a7536dc85a0 (diff)
downloadserd-9e2f2b436a6eeefcf22434afa15193d8831b40c0.tar.gz
serd-9e2f2b436a6eeefcf22434afa15193d8831b40c0.tar.bz2
serd-9e2f2b436a6eeefcf22434afa15193d8831b40c0.zip
Only load sphinxygen subproject if required tools are found
Diffstat (limited to 'doc')
-rw-r--r--doc/meson.build26
1 files changed, 19 insertions, 7 deletions
diff --git a/doc/meson.build b/doc/meson.build
index e1a20aa4..ccd9426e 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -3,22 +3,33 @@
docdir = get_option('datadir') / 'doc'
+#############
+# Reference #
+#############
+
doxygen = find_program('doxygen', required: get_option('docs'))
-sphinxygen = find_program('sphinxygen', required: false)
sphinx_build = find_program('sphinx-build', required: get_option('docs'))
-mandoc = find_program('mandoc', required: false)
-if not sphinxygen.found()
- subproject('sphinxygen')
- sphinxygen = find_program('sphinxygen', required: get_option('docs'))
+if doxygen.found() and sphinx_build.found()
+ sphinxygen = find_program('sphinxygen', required: false)
+ if not sphinxygen.found()
+ subproject('sphinxygen')
+ sphinxygen = find_program('sphinxygen', required: get_option('docs'))
+ endif
+else
+ sphinxygen = disabler()
endif
build_docs = doxygen.found() and sphinxygen.found() and sphinx_build.found()
-
if build_docs
subdir('c')
endif
+#############
+# Man Pages #
+#############
+
+mandoc = find_program('mandoc', required: false)
mandoc_css = files('mandoc.css')
if not get_option('tests').disabled()
@@ -42,5 +53,6 @@ if mandoc.found()
endif
if not meson.is_subproject()
- summary('API Documentation', build_docs, bool_yn: true)
+ summary('HTML man pages', build_docs, bool_yn: true)
+ summary('Reference documentation', build_docs, bool_yn: true)
endif