Merging upstream version 1.1~rc0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
537ee18b08
commit
73281abe5f
764 changed files with 32602 additions and 5874 deletions
36
doc/rst/meson.build
Normal file
36
doc/rst/meson.build
Normal file
|
@ -0,0 +1,36 @@
|
|||
want_docs = get_option('docs')
|
||||
|
||||
if want_docs != 'false'
|
||||
want_docs_build = get_option('docs-build')
|
||||
rstdir = get_option('rstdir')
|
||||
if want_docs_build
|
||||
kernel_doc = find_program('../kernel-doc')
|
||||
|
||||
conf = configuration_data()
|
||||
conf.set('SYSCONFDIR', sysconfdir)
|
||||
|
||||
if want_docs == 'all' or want_docs == 'rst' or want_docs == 'html'
|
||||
foreach apif : api_files
|
||||
afile = files('../../src/nvme/' + apif)
|
||||
subst = configure_file(
|
||||
input: afile,
|
||||
output: '@BASENAME@.subst',
|
||||
configuration: conf)
|
||||
rst = custom_target(
|
||||
apif.underscorify() + '_rst',
|
||||
input: subst,
|
||||
output: '@BASENAME@.rst',
|
||||
capture: true,
|
||||
command: [kernel_doc,
|
||||
'-rst',
|
||||
'@INPUT@'],
|
||||
install: true,
|
||||
install_dir: rstdir)
|
||||
endforeach
|
||||
endif
|
||||
else
|
||||
if want_docs == 'all' or want_docs == 'rst'
|
||||
install_subdir('rst', install_dir: rstdir)
|
||||
endif
|
||||
endif
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue