doc/meson.build: kludge to fix manpage installation directory
Ugly workaround for https://github.com/mesonbuild/meson/issues/1550
This commit is contained in:
parent
c843bce9f5
commit
9b4f2ac79b
|
@ -39,16 +39,13 @@ if get_option('html_manual')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('manpages')
|
if get_option('manpages')
|
||||||
# This installs all manpages in the "man1" subdirectory. Due to
|
|
||||||
# https://github.com/mesonbuild/meson/issues/1550 there appears to
|
|
||||||
# be no good solution with Meson. Sigh.
|
|
||||||
custom_target(
|
custom_target(
|
||||||
'Manpage documentation',
|
'Manpage documentation',
|
||||||
output: 'man1',
|
output: ['mpd.1', 'mpd.conf.5'],
|
||||||
input: ['mpd.1.rst', 'conf.py'],
|
input: ['mpd.1.rst', 'conf.py'],
|
||||||
command: [sphinx, '-q', '-b', 'man', '-d', '@OUTDIR@/man_doctrees', meson.current_source_dir(), '@OUTPUT@'],
|
command: [sphinx, '-q', '-b', 'man', '-d', '@OUTDIR@/man_doctrees', meson.current_source_dir(), '@OUTDIR@'],
|
||||||
build_by_default: true,
|
build_by_default: true,
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: get_option('mandir'),
|
install_dir: [join_paths(get_option('mandir'), 'man1'), join_paths(get_option('mandir'), 'man5')],
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue