labwc/docs/meson.build

26 lines
528 B
Meson
Raw Normal View History

2021-03-05 22:14:02 +00:00
scdoc = find_program('scdoc', required: get_option('man-pages'))
2020-07-22 21:58:27 +01:00
2021-03-05 22:14:02 +00:00
if scdoc.found()
2021-04-10 09:17:41 +01:00
sections = [
'.1',
'-actions.5',
'-config.5',
'-menu.5',
'-theme.5',
]
2020-07-22 21:58:27 +01:00
foreach s : sections
2021-03-05 22:14:02 +00:00
markdown = 'labwc' + s + '.scd'
manpage = 'labwc' + s
2020-07-22 21:58:27 +01:00
custom_target(
manpage,
2021-03-05 22:14:02 +00:00
input: markdown,
2020-07-22 21:58:27 +01:00
output: manpage,
command: scdoc,
feed: true,
2020-07-22 21:58:27 +01:00
capture: true,
install: true,
install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1])
2020-07-22 21:58:27 +01:00
)
endforeach
endif