1
0
Fork 0

[meson] Added docdir option. Refs #224

By default docdir is $prefix/share/doc/elinks
This commit is contained in:
Witold Filipczyk 2023-04-23 13:37:36 +02:00
parent 3581aa62f1
commit e890b07584
2 changed files with 7 additions and 1 deletions

View File

@ -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',

View File

@ -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.')