diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-08-17 19:24:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-08-17 19:24:11 +0000 |
| commit | f4da46350e47d1094136b264d76fcf9caeb77a55 (patch) | |
| tree | f0c8d8cd62ae26cb477fff7f89896aecf1a01d85 /doc/meson.build | |
| parent | term: check visual-focus, not kbd-focus when enabling/disabling cursor blink (diff) | |
| parent | terminfo: install to $datadir/foot/terminfo by default, append to TERMINFO_DIRS (diff) | |
Merge branch 'terminfo-dirs'
Closes #671
Diffstat (limited to 'doc/meson.build')
| -rw-r--r-- | doc/meson.build | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/meson.build b/doc/meson.build index a139d4c2..a8b086ef 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -2,6 +2,12 @@ sh = find_program('sh', native: true) scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) +conf_data = configuration_data( + { + 'default_terminfo': get_option('default-terminfo'), + } +) + foreach man_src : [{'name': 'foot', 'section' : 1}, {'name': 'foot.ini', 'section': 5}, {'name': 'footclient', 'section': 1}, @@ -10,10 +16,16 @@ foreach man_src : [{'name': 'foot', 'section' : 1}, section = man_src['section'] out = '@0@.@1@'.format(name, section) + preprocessed = configure_file( + input: '@0@.@1@.scd'.format(name, section), + output: '@0@.preprocessed'.format(out), + configuration: conf_data, + ) + custom_target( out, output: out, - input: '@0@.@1@.scd'.format(name, section), + input: preprocessed, command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.path())], capture: true, install: true, |
