diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-24 11:09:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-24 11:12:10 +0000 |
| commit | 7c686208a18f93ec1f955c289045251af5ef6056 (patch) | |
| tree | 5db4a760b5cb5abec55701c4594e62682d06b31b /meson.build | |
| parent | Merge branch 'csd-title' (diff) | |
meson: add -Ddocs=disabled|enabled|auto command line option
When enabled (the default, if scdoc is found), we build and install
the man pages, example foot.ini, readme, changelog and license files.
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 09d86ff7..4d0b8f13 100644 --- a/meson.build +++ b/meson.build @@ -239,19 +239,24 @@ else endif install_data( - 'LICENSE', 'README.md', 'CHANGELOG.md', - install_dir: join_paths(get_option('datadir'), 'doc', 'foot')) -install_data( 'foot.desktop', 'foot-server.desktop', install_dir: join_paths(get_option('datadir'), 'applications')) -install_data('foot.ini', install_dir: join_paths(get_option('datadir'), 'foot')) + +scdoc = dependency('scdoc', native: true, required: get_option('docs')) +if scdoc.found() + install_data( + 'LICENSE', 'README.md', 'CHANGELOG.md', + install_dir: join_paths(get_option('datadir'), 'doc', 'foot')) + install_data('foot.ini', install_dir: join_paths(get_option('datadir'), 'foot')) + subdir('doc') +endif subdir('completions') -subdir('doc') subdir('icons') summary( { + 'Documentation': scdoc.found(), 'IME': get_option('ime'), 'Grapheme clustering': utf8proc.found(), 'Terminfo': tic.found(), |
