1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2018 Intel Corporation 3 4sphinx = find_program('sphinx-build', required: get_option('enable_docs')) 5 6if not sphinx.found() 7 subdir_done() 8endif 9 10htmldir = join_paths(get_option('datadir'), 'doc', 'dpdk') 11html_guides = custom_target('html_guides', 12 input: files('index.rst'), 13 output: 'html', 14 command: [sphinx_wrapper, sphinx, meson.current_source_dir(), meson.current_build_dir()], 15 depfile: '.html.d', 16 build_by_default: get_option('enable_docs'), 17 install: get_option('enable_docs'), 18 install_dir: htmldir) 19 20install_data(files('custom.css'), 21 install_dir: join_paths(htmldir,'_static', 'css')) 22 23doc_targets += html_guides 24doc_target_names += 'HTML_Guides' 25