1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
4 sphinx = find_program('sphinx-build', required: get_option('enable_docs'))
10 extra_sphinx_args = []
11 if get_option('werror')
12 extra_sphinx_args += '-W'
15 htmldir = join_paths(get_option('datadir'), 'doc', 'dpdk')
16 html_guides = custom_target('html_guides',
17 input: files('index.rst'),
19 command: [sphinx_wrapper, sphinx, meson.project_version(),
20 meson.current_source_dir(), meson.current_build_dir(),
23 build_by_default: get_option('enable_docs'),
24 install: get_option('enable_docs'),
27 install_data(files('custom.css'),
28 install_dir: join_paths(htmldir,'_static', 'css'))
30 doc_targets += html_guides
31 doc_target_names += 'HTML_Guides'