mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Install txt, pdf, html docs in $prefix/share/doc/elinks
This commit is contained in:
parent
552917701c
commit
dd4557e983
@ -15,16 +15,21 @@ if conf_data.get('CONFIG_REPRODUCIBLE')
|
|||||||
else
|
else
|
||||||
asciidoc_env = []
|
asciidoc_env = []
|
||||||
endif
|
endif
|
||||||
|
doc_dir = get_option('prefix') / 'share/doc/elinks'
|
||||||
|
|
||||||
if pod2html.found()
|
if pod2html.found()
|
||||||
perl_html = custom_target('perl.html',
|
perl_html = custom_target('perl.html',
|
||||||
input: ['perl.pod'],
|
input: ['perl.pod'],
|
||||||
output: ['perl.html'],
|
output: ['perl.html'],
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [pod2html, '--outfile=@OUTPUT@', '--infile=@INPUT@'])
|
command: [pod2html, '--outfile=@OUTPUT@', '--infile=@INPUT@'])
|
||||||
|
|
||||||
perl_hooks_html = custom_target('perl-hooks.html',
|
perl_hooks_html = custom_target('perl-hooks.html',
|
||||||
input: ['../contrib/perl/hooks.pl'],
|
input: ['../contrib/perl/hooks.pl'],
|
||||||
output: ['perl-hooks.html'],
|
output: ['perl-hooks.html'],
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [pod2html, '--outfile=@OUTPUT@', '--infile=@INPUT@'])
|
command: [pod2html, '--outfile=@OUTPUT@', '--infile=@INPUT@'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -32,6 +37,8 @@ features_txt = custom_target('features.txt',
|
|||||||
input: ['../features.conf'],
|
input: ['../features.conf'],
|
||||||
output: 'features.txt',
|
output: 'features.txt',
|
||||||
capture: true,
|
capture: true,
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [meson.current_source_dir() + '/tools/conf2doc', '@INPUT@'])
|
command: [meson.current_source_dir() + '/tools/conf2doc', '@INPUT@'])
|
||||||
|
|
||||||
keymap_actions_txt = custom_target('keymap-actions.txt',
|
keymap_actions_txt = custom_target('keymap-actions.txt',
|
||||||
@ -44,6 +51,8 @@ keymap_defaults_txt = custom_target('keymap-defaults.txt',
|
|||||||
input: ['../src/config/kbdbind.c'],
|
input: ['../src/config/kbdbind.c'],
|
||||||
output: 'keymap-defaults.txt',
|
output: 'keymap-defaults.txt',
|
||||||
capture: true,
|
capture: true,
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [meson.current_source_dir() + '/tools/keys2doc', '@INPUT@', 'keymap-defaults.txt'])
|
command: [meson.current_source_dir() + '/tools/keys2doc', '@INPUT@', 'keymap-defaults.txt'])
|
||||||
|
|
||||||
option_command_frag_xml = custom_target('option-command.frag.xml',
|
option_command_frag_xml = custom_target('option-command.frag.xml',
|
||||||
@ -62,6 +71,8 @@ option_command_frag_xhtml = custom_target('option-command.frag.xhtml',
|
|||||||
input: [],
|
input: [],
|
||||||
output: 'option-command.frag.xhtml',
|
output: 'option-command.frag.xhtml',
|
||||||
env: ['LC_ALL=C', 'LANGUAGE=en'],
|
env: ['LC_ALL=C', 'LANGUAGE=en'],
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [meson.current_source_dir() + '/tools/help2xml', elinks, '@OUTPUT@'])
|
command: [meson.current_source_dir() + '/tools/help2xml', elinks, '@OUTPUT@'])
|
||||||
|
|
||||||
option_config_frag_xhtml = custom_target('option-config.frag.xhtml',
|
option_config_frag_xhtml = custom_target('option-config.frag.xhtml',
|
||||||
@ -75,6 +86,8 @@ elinks_1_html = custom_target('elinks.1.html',
|
|||||||
output: 'elinks.1.html',
|
output: 'elinks.1.html',
|
||||||
depends: option_command_frag_xhtml,
|
depends: option_command_frag_xhtml,
|
||||||
env: asciidoc_env,
|
env: asciidoc_env,
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [meson.current_source_dir() + '/tools/asciidoc/asciidoc.py',
|
command: [meson.current_source_dir() + '/tools/asciidoc/asciidoc.py',
|
||||||
'--no-conf', '-f', meson.current_source_dir() + '/tools/asciidoc/asciidoc.conf',
|
'--no-conf', '-f', meson.current_source_dir() + '/tools/asciidoc/asciidoc.conf',
|
||||||
'-f', meson.current_source_dir() + '/tools/asciidoc/xhtml11.conf',
|
'-f', meson.current_source_dir() + '/tools/asciidoc/xhtml11.conf',
|
||||||
@ -103,6 +116,8 @@ elinkskeys_5_html = custom_target('elinkskeys.5.html',
|
|||||||
output: 'elinkskeys.5.html',
|
output: 'elinkskeys.5.html',
|
||||||
depends: [keymap_actions_txt, keymap_defaults_txt],
|
depends: [keymap_actions_txt, keymap_defaults_txt],
|
||||||
env: asciidoc_env,
|
env: asciidoc_env,
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [meson.current_source_dir() + '/tools/asciidoc/asciidoc.py',
|
command: [meson.current_source_dir() + '/tools/asciidoc/asciidoc.py',
|
||||||
'--no-conf', '-f', meson.current_source_dir() + '/tools/asciidoc/asciidoc.conf',
|
'--no-conf', '-f', meson.current_source_dir() + '/tools/asciidoc/asciidoc.conf',
|
||||||
'-f', meson.current_source_dir() + '/tools/asciidoc/xhtml11.conf',
|
'-f', meson.current_source_dir() + '/tools/asciidoc/xhtml11.conf',
|
||||||
@ -130,6 +145,8 @@ manual_html = custom_target('manual.html',
|
|||||||
output: 'manual.html',
|
output: 'manual.html',
|
||||||
depends: features_txt,
|
depends: features_txt,
|
||||||
env: asciidoc_env,
|
env: asciidoc_env,
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [meson.current_source_dir() + '/tools/asciidoc/asciidoc.py',
|
command: [meson.current_source_dir() + '/tools/asciidoc/asciidoc.py',
|
||||||
'--no-conf', '-f', meson.current_source_dir() + '/tools/asciidoc/asciidoc.conf',
|
'--no-conf', '-f', meson.current_source_dir() + '/tools/asciidoc/asciidoc.conf',
|
||||||
'-f', meson.current_source_dir() + '/tools/asciidoc/xhtml11.conf',
|
'-f', meson.current_source_dir() + '/tools/asciidoc/xhtml11.conf',
|
||||||
@ -248,6 +265,8 @@ if xmlto.found()
|
|||||||
input: [],
|
input: [],
|
||||||
output: 'manual.html-chunked',
|
output: 'manual.html-chunked',
|
||||||
depends: manual_xml,
|
depends: manual_xml,
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [xmlto, '-o', meson.current_build_dir() + '/manual.html-chunked', 'html', meson.current_build_dir()+'/manual.xml'])
|
command: [xmlto, '-o', meson.current_build_dir() + '/manual.html-chunked', 'html', meson.current_build_dir()+'/manual.xml'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -258,6 +277,8 @@ if dblatex.found()
|
|||||||
input: [],
|
input: [],
|
||||||
output: 'manual.pdf',
|
output: 'manual.pdf',
|
||||||
depends: manual_xml,
|
depends: manual_xml,
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [dblatex, meson.current_build_dir() + '/manual.xml'])
|
command: [dblatex, meson.current_build_dir() + '/manual.xml'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -267,6 +288,8 @@ if doxygen.found()
|
|||||||
input: [],
|
input: [],
|
||||||
output: 'api',
|
output: 'api',
|
||||||
env: ['OUTPUT_DIRECTORY='+meson.current_build_dir()+'/'],
|
env: ['OUTPUT_DIRECTORY='+meson.current_build_dir()+'/'],
|
||||||
|
install: true,
|
||||||
|
install_dir: doc_dir,
|
||||||
command: [doxygen, meson.current_build_dir()+'/Doxyfile'])
|
command: [doxygen, meson.current_build_dir()+'/Doxyfile'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user