mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Arbitrary sections may not be supported by all man(1) implementations. labwc manpages have numeric sections but installed in the wrong place: $ meson setup --prefix=/usr _build && meson install -C _build [...] Installing docs/labwc.1 to /usr/share/man/man.1 Installing docs/labwc-config.5 to /usr/share/man/man-config.5 Installing docs/labwc-theme.5 to /usr/share/man/man-theme.5 Installing docs/labwc-actions.5 to /usr/share/man/man-actions.5 [...]
18 lines
487 B
Meson
18 lines
487 B
Meson
pandoc = find_program('pandoc', required: get_option('man-pages'))
|
|
|
|
sections = ['.1', '-config.5', '-theme.5', '-actions.5']
|
|
|
|
if pandoc.found()
|
|
foreach s : sections
|
|
markdown = files('labwc' + s + '.md')
|
|
manpage = 'labwc' + s
|
|
custom_target(
|
|
manpage,
|
|
command: [pandoc,'-s','-t','man',markdown],
|
|
output: manpage,
|
|
capture: true,
|
|
install: true,
|
|
install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1])
|
|
)
|
|
endforeach
|
|
endif
|