forked from external/yambar
meson: generate man pages
This commit is contained in:
parent
e563761093
commit
095766ca12
2 changed files with 23 additions and 2 deletions
22
doc/meson.build
Normal file
22
doc/meson.build
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
sh = find_program('sh', native: true)
|
||||||
|
scdoc = dependency('scdoc', native: true)
|
||||||
|
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)
|
||||||
|
gzip = find_program('gzip', native: true)
|
||||||
|
|
||||||
|
foreach man_src : ['f00bar.1.scd', 'f00bar.5.scd', 'f00bar-decorations.5.scd',
|
||||||
|
'f00bar-modules.5.scd', 'f00bar-particles.5.scd',
|
||||||
|
'f00bar-tags.5.scd']
|
||||||
|
parts = man_src.split('.')
|
||||||
|
name = parts[-3]
|
||||||
|
section = parts[-2]
|
||||||
|
out = '@0@.@1@.gz'.format(name, section)
|
||||||
|
|
||||||
|
custom_target(
|
||||||
|
out,
|
||||||
|
output: out,
|
||||||
|
input: man_src,
|
||||||
|
command: [sh, '-c', '@0@ < @INPUT@ | @1@ > doc/@2@'.format(
|
||||||
|
scdoc_prog.path(), gzip.path(), out)],
|
||||||
|
install: true,
|
||||||
|
install_dir: '@0@/man@1@'.format(get_option('mandir'), section))
|
||||||
|
endforeach
|
|
@ -16,7 +16,6 @@ cairo = dependency('cairo')
|
||||||
cairo_ft = dependency('cairo-ft')
|
cairo_ft = dependency('cairo-ft')
|
||||||
yaml = dependency('yaml-0.1')
|
yaml = dependency('yaml-0.1')
|
||||||
|
|
||||||
# TODO: X11
|
|
||||||
xcb_aux = dependency('xcb-aux', required: get_option('backend-x11'))
|
xcb_aux = dependency('xcb-aux', required: get_option('backend-x11'))
|
||||||
xcb_cursor = dependency('xcb-cursor', required: get_option('backend-x11'))
|
xcb_cursor = dependency('xcb-cursor', required: get_option('backend-x11'))
|
||||||
xcb_event = dependency('xcb-event', required: get_option('backend-x11'))
|
xcb_event = dependency('xcb-event', required: get_option('backend-x11'))
|
||||||
|
@ -36,7 +35,6 @@ else
|
||||||
enable_x11 = false
|
enable_x11 = false
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# TODO: conditional on Wayland
|
|
||||||
wayland_client = dependency('wayland-client', required: get_option('backend-wayland'))
|
wayland_client = dependency('wayland-client', required: get_option('backend-wayland'))
|
||||||
wayland_cursor = dependency('wayland-cursor', required: get_option('backend-wayland'))
|
wayland_cursor = dependency('wayland-cursor', required: get_option('backend-wayland'))
|
||||||
wlroots = dependency('wlroots', required: get_option('backend-wayland'))
|
wlroots = dependency('wlroots', required: get_option('backend-wayland'))
|
||||||
|
@ -58,6 +56,7 @@ if enable_x11
|
||||||
xcb_stuff = declare_dependency(link_with: xcb_stuff_lib)
|
xcb_stuff = declare_dependency(link_with: xcb_stuff_lib)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
subdir('doc')
|
||||||
subdir('bar')
|
subdir('bar')
|
||||||
subdir('decorations')
|
subdir('decorations')
|
||||||
subdir('particles')
|
subdir('particles')
|
||||||
|
|
Loading…
Add table
Reference in a new issue