mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
39 lines
750 B
Meson
39 lines
750 B
Meson
scdoc = find_program('scdoc', required: get_option('man-pages'))
|
|
|
|
if scdoc.found()
|
|
sections = [
|
|
'.1',
|
|
'-actions.5',
|
|
'-config.5',
|
|
'-menu.5',
|
|
'-theme.5',
|
|
]
|
|
foreach s : sections
|
|
markdown = 'labwc' + s + '.scd'
|
|
manpage = 'labwc' + s
|
|
custom_target(
|
|
manpage,
|
|
input: markdown,
|
|
output: manpage,
|
|
command: scdoc,
|
|
feed: true,
|
|
capture: true,
|
|
install: true,
|
|
install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1])
|
|
)
|
|
endforeach
|
|
endif
|
|
|
|
install_data(
|
|
[
|
|
'autostart',
|
|
'environment',
|
|
'menu.xml',
|
|
'README',
|
|
'shutdown',
|
|
'themerc',
|
|
'rc.xml',
|
|
'rc.xml.all'
|
|
],
|
|
install_dir: get_option('datadir') / 'doc' / meson.project_name()
|
|
)
|