[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 135/147] meson: sphinx-build
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH 135/147] meson: sphinx-build |
Date: |
Mon, 10 Aug 2020 21:06:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
On 10/08/20 20:33, Peter Maydell wrote:
> On Mon, 10 Aug 2020 at 19:16, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>
>> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
>> diff --git a/configure b/configure
>> index 21b9ed2..7e7b4d8 100755
>> --- a/configure
>> +++ b/configure
>> @@ -7768,7 +7768,6 @@ echo "INSTALL_PROG=$install -c -m 0755" >>
>> $config_host_mak
>> echo "INSTALL_LIB=$install -c -m 0644" >> $config_host_mak
>> echo "PYTHON=$python" >> $config_host_mak
>> echo "SPHINX_BUILD=$sphinx_build" >> $config_host_mak
>> -echo "SPHINX_WERROR=$sphinx_werror" >> $config_host_mak
>
> Shouldn't we also be deleting the code in configure that
> sets $sphinx_werror if we're no longer using it ?
Yes.
>> + these_man_pages = []
>> + install_dirs = []
>> + foreach page, section : man_pages.get(manual, {})
>> + these_man_pages += page
>> + install_dirs += section == '' ? false : get_option('mandir') / section
>> + endforeach
>> + if these_man_pages.length() > 0
>> + sphinxmans += custom_target(manual + ' man pages',
>> + build_always_stale: true,
>> + build_by_default: build_docs,
>> + output: these_man_pages,
>> + install: build_docs,
>> + install_dir: install_dirs,
>> + command: [SPHINX_ARGS, '-b', 'man', '-d',
>> private_dir,
>> + input_dir, meson.current_build_dir()])
>> + endif
>> + endforeach
>> + alias_target('sphinxdocs', sphinxdocs)
>> + alias_target('man', sphinxmans)
>
> Does "build_always_stale: true" do what I guess it does from the
> name? Does this mean we're discarding the makefile's approach of
> only running sphinx if it's necessary in favour of always running
> half a dozen sphinx invocations every build ?
Yes, because the Makefile's approach is not maintainable in my opinion;
*.rst.inc files were already not included in the Makefile. I'll look
into using a Sphinx extension to produce a dependency file.
Paolo
Paolo
- [PATCH 130/147] meson: plugins, (continued)
- [PATCH 130/147] meson: plugins, Paolo Bonzini, 2020/08/10
- [PATCH 129/147] meson: cpu-emu, Paolo Bonzini, 2020/08/10
- [PATCH 133/147] rules.mak: remove version.o, Paolo Bonzini, 2020/08/10
- [PATCH 132/147] meson: convert systemtap files, Paolo Bonzini, 2020/08/10
- [PATCH 131/147] meson: link emulators without Makefile.target, Paolo Bonzini, 2020/08/10
- [PATCH 134/147] remove Makefile.target, Paolo Bonzini, 2020/08/10
- [PATCH 135/147] meson: sphinx-build, Paolo Bonzini, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build, Peter Maydell, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build,
Paolo Bonzini <=
- Re: [PATCH 135/147] meson: sphinx-build, Peter Maydell, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build, Paolo Bonzini, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build, Peter Maydell, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build, Paolo Bonzini, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build, Peter Maydell, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build, Paolo Bonzini, 2020/08/10
- Re: [PATCH 135/147] meson: sphinx-build, Paolo Bonzini, 2020/08/11
[PATCH 136/147] meson: build texi doc, Paolo Bonzini, 2020/08/10
[PATCH 137/147] meson: convert check-block, Paolo Bonzini, 2020/08/10
[PATCH 140/147] meson: convert sample plugins, Paolo Bonzini, 2020/08/10