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

View file

@ -16,6 +16,13 @@
## Unreleased
### Added
* `-Dwith-docs=disabled|enabled|auto` meson command line option. When
disabled, no documentation will be installed. This includes man
pages as well as `README.md`, `CHANGELOG.md` and `LICENSE`. Defaults
to `enabled`.
### Changed
### Deprecated
### Removed