Merge branch 'ps/meson-build-docs'

The build procedure based on meson learned a target to only build
documentation, similar to "make doc".

* ps/meson-build-docs:
  ci: don't compile whole project when testing docs with Meson
  meson: print docs backend as part of the summary
  meson: introduce a "docs" alias to compile documentation only
This commit is contained in:
Junio C Hamano
2025-10-02 12:26:12 -07:00
7 changed files with 24 additions and 14 deletions

View File

@@ -2101,11 +2101,20 @@ endif
subdir('bin-wrappers')
if get_option('docs') != []
doc_targets = []
subdir('Documentation')
else
docs_backend = 'none'
endif
subdir('contrib')
# Note that the target is intentionally configured after including the
# 'contrib' directory, as some tool there also have their own manpages.
if get_option('docs') != []
alias_target('docs', doc_targets)
endif
exclude_from_check_headers = [
'compat/',
'unicode-width.h',
@@ -2244,6 +2253,7 @@ summary({
summary({
'csprng': csprng_backend,
'docs': docs_backend,
'https': https_backend,
'sha1': sha1_backend,
'sha1_unsafe': sha1_unsafe_backend,