[Python-checkins] gh-97731: Specify the full path to the docs for `make docclean` (GH-98982)

miss-islington webhook-mailer at python.org
Wed Nov 2 15:58:55 EDT 2022


https://github.com/python/cpython/commit/dc4bf6b229f5750a26b7fb5a89b02eab25ee61a1
commit: dc4bf6b229f5750a26b7fb5a89b02eab25ee61a1
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-11-02T12:58:48-07:00
summary:

gh-97731: Specify the full path to the docs for `make docclean` (GH-98982)


Specify the full path to the docs for `make docclean`
This is to have `make clean` not error out on cross-builds.
(cherry picked from commit 22bab74c8f5fa6d53ddb7e40baa4334d09331c0f)

Co-authored-by: Brett Cannon <brett at python.org>

files:
A Misc/NEWS.d/next/Build/2022-11-02-18-45-35.gh-issue-97731.zKpTlj.rst
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index e837a64a3c7c..17466c91b3b0 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -2389,7 +2389,7 @@ rmtestturds:
 	-rm -f gb-18030-2000.xml
 
 docclean:
-	$(MAKE) -C Doc clean
+	$(MAKE) -C $(srcdir)/Doc clean
 
 # like the 'clean' target but retain the profile guided optimization (PGO)
 # data.  The PGO data is only valid if source code remains unchanged.
diff --git a/Misc/NEWS.d/next/Build/2022-11-02-18-45-35.gh-issue-97731.zKpTlj.rst b/Misc/NEWS.d/next/Build/2022-11-02-18-45-35.gh-issue-97731.zKpTlj.rst
new file mode 100644
index 000000000000..46b1fb833d47
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2022-11-02-18-45-35.gh-issue-97731.zKpTlj.rst
@@ -0,0 +1,2 @@
+Specify the full path to the source location for ``make docclean`` (needed for
+cross-builds).



More information about the Python-checkins mailing list