mirror of
https://github.com/labwc/labwc.git
synced 2026-03-15 05:33:53 -04:00
build: refactor in preparation for man page not beginning with 'labwc-'
No functional change intended.
This commit is contained in:
parent
fba73a0036
commit
6fd14987dd
1 changed files with 9 additions and 10 deletions
|
|
@ -1,16 +1,15 @@
|
||||||
scdoc = find_program('scdoc', required: get_option('man-pages'))
|
scdoc = find_program('scdoc', required: get_option('man-pages'))
|
||||||
|
|
||||||
if scdoc.found()
|
if scdoc.found()
|
||||||
sections = [
|
manpages = [
|
||||||
'.1',
|
'labwc.1',
|
||||||
'-actions.5',
|
'labwc-actions.5',
|
||||||
'-config.5',
|
'labwc-config.5',
|
||||||
'-menu.5',
|
'labwc-menu.5',
|
||||||
'-theme.5',
|
'labwc-theme.5',
|
||||||
]
|
]
|
||||||
foreach s : sections
|
foreach manpage : manpages
|
||||||
markdown = 'labwc' + s + '.scd'
|
markdown = manpage + '.scd'
|
||||||
manpage = 'labwc' + s
|
|
||||||
custom_target(
|
custom_target(
|
||||||
manpage,
|
manpage,
|
||||||
input: markdown,
|
input: markdown,
|
||||||
|
|
@ -19,7 +18,7 @@ if scdoc.found()
|
||||||
feed: true,
|
feed: true,
|
||||||
capture: true,
|
capture: true,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(get_option('mandir'), 'man' + s.split('.')[-1])
|
install_dir: join_paths(get_option('mandir'), 'man' + manpage.split('.')[-1])
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue