[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] Makefile: Make all Sphinx documentation depend on the extens
From: |
Peter Maydell |
Subject: |
[PATCH 5/7] Makefile: Make all Sphinx documentation depend on the extensions |
Date: |
Fri, 6 Mar 2020 17:17:47 +0000 |
Add the Python source files of our Sphinx extensions to the
dependencies of the Sphinx manuals, so that if we edit the
extension source code the manuals get rebuilt.
Adding this dependency unconditionally means that we'll rebuild
a manual even if it happens to not use the extension whose
source file was changed, but this is simpler and less error
prone, and it's unlikely that we'll be making frequent changes
to the extensions.
Signed-off-by: Peter Maydell <address@hidden>
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2ccd80065b6..5847f8d41d9 100644
--- a/Makefile
+++ b/Makefile
@@ -1046,7 +1046,8 @@ build-manual = $(call
quiet-command,CONFDIR="$(qemu_confdir)" $(SPHINX_BUILD) $(
# We assume all RST files in the manual's directory are used in it
manual-deps = $(wildcard $(SRC_PATH)/docs/$1/*.rst) \
$(SRC_PATH)/docs/defs.rst.inc \
- $(SRC_PATH)/docs/$1/conf.py $(SRC_PATH)/docs/conf.py
+ $(SRC_PATH)/docs/$1/conf.py $(SRC_PATH)/docs/conf.py \
+ $(SRC_PATH)/docs/sphinx/*.py
# Macro to write out the rule and dependencies for building manpages
# Usage: $(call define-manpage-rule,manualname,manpage1
manpage2...[,extradeps])
# 'extradeps' is optional, and specifies extra files (eg .hx files) that
--
2.20.1
- [PATCH 0/7] post-rst-conversion cleanups, Peter Maydell, 2020/03/06
- [PATCH 1/7] Makefile: Remove redundant Texinfo related code, Peter Maydell, 2020/03/06
- [PATCH 2/7] Update comments in .hx files that mention Texinfo, Peter Maydell, 2020/03/06
- [PATCH 3/7] hxtool: Remove Texinfo generation support, Peter Maydell, 2020/03/06
- [PATCH 4/7] docs/sphinx/hxtool.py: Remove STEXI/ETEXI support, Peter Maydell, 2020/03/06
- [PATCH 6/7] docs/index.rst, docs/index.html.in: Reorder manuals, Peter Maydell, 2020/03/06
- [PATCH 5/7] Makefile: Make all Sphinx documentation depend on the extensions,
Peter Maydell <=
- [PATCH 7/7] docs/qemu-option-trace.rst.inc: Remove redundant comment, Peter Maydell, 2020/03/06
- Re: [PATCH 0/7] post-rst-conversion cleanups, no-reply, 2020/03/06
- Re: [PATCH 0/7] post-rst-conversion cleanups, Richard Henderson, 2020/03/11