diff --git a/doc/meson.build b/doc/meson.build index af4d87d3..12570e70 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -15,7 +15,12 @@ if conf_data.get('CONFIG_REPRODUCIBLE') else asciidoc_env = [] endif -doc_dir = get_option('prefix') / 'share/doc/elinks' + +doc_dir = get_option('docdir') + +if doc_dir == '' + doc_dir = get_option('prefix') / 'share/doc/elinks' +endif if pod2html.found() perl_html = custom_target('perl.html', diff --git a/meson_options.txt b/meson_options.txt index 3e410630..db10d2a7 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -73,3 +73,4 @@ option('dgi', type: 'boolean', value: false, description: 'DOS Gateway Interface option('mujs', type: 'boolean', value: false, description: 'use mujs library') option('codepoint', type: 'boolean', value: true, description: 'whether check codepoints on Linux console') option('test', type: 'boolean', value: false, description: 'whether build test programs') +option('docdir', type: 'string', value: '', description: 'Documentation installation directory. Default $prefix/share/doc/elinks.')