meson: add -Dwith-docs=disabled|enabled|auto

When enabled, man pages are generated and installed, along with
README.md, CHANGELOG.md and LICENSE. This requires ‘scdoc’ as a make
dependency.

When disabled, ‘scdoc’ is no longer required, no man pages will be
built, and no documentation at all is installed.

Defaults to ‘enabled’.
This commit is contained in:
Daniel Eklöf 2020-09-24 16:39:19 +02:00
parent f8174ebb93
commit 9d6b2c9342
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 25 additions and 11 deletions

2
meson_options.txt Normal file
View file

@ -0,0 +1,2 @@
option('with-docs', type: 'feature', value: 'enabled',
description: 'generate and install documentation (man pages). Requires scdoc.')