1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
doc_sources = files(
'authors.rst',
'conf.py',
'index.rst',
'install.rst',
'intro.rst',
'method.rst',
'result.rst',
'retrocopy.rst',
'usage.rst'
)
doc_images = files(
'images/DBSCAN.png',
'images/LINE1.png',
'images/abnormal_alignment_chr.png',
'images/abnormal_alignment_clustering.png',
'images/abnormal_alignment_dist.png',
'images/abnormal_alignment_exon.png',
'images/abnormal_alignment_sr.png',
'images/alignment_of_CACNA1B.png',
'images/abyzov_table2.png',
'images/barbara.jpg',
'images/genotype.png',
'images/indistinguishable_alignment.png',
'images/logo_sideRETRO.png',
'images/orientation_opposite_strand.png',
'images/orientation_same_strand.png',
'images/result_confusion.png',
'images/retrocopy.png'
)
sphinx_source_dir = join_paths(meson.global_source_root(), 'docs')
sphinx_builddir = join_paths(meson.global_build_root(), 'docs')
# Test if sphinx is installed
if sphinx_build.found()
sphinx_target = get_option('sphinx_target')
sphinx_cmd = [
sphinx_build,
'-b', sphinx_target,
sphinx_source_dir,
sphinx_builddir
]
# If the user passed the option '-Dsphinx_target=man', then
# we build a man page and set the installation to
# /usr/local/man/man1
if sphinx_target == 'man'
message('Generate man page alongside the executable')
custom_target('docs',
input : [doc_sources, doc_images],
output : ['sider.1'],
install : true,
build_by_default : true,
install_dir : join_paths(get_option('mandir'), 'man1'),
command : sphinx_cmd
)
else
custom_target('docs',
input : [doc_sources, doc_images],
output : ['.'],
install : false,
build_by_default : false,
command : sphinx_cmd
)
endif
else
# Make users aware that without sphinx the documentation
# cannot be generated
warning('Documentation is disabled without \'sphinx\'')
endif
|