]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-97731: Specify the full path to the docs for `make docclean` (GH-98982...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Nov 2022 21:05:00 +0000 (14:05 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 21:05:00 +0000 (14:05 -0700)
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)

Makefile.pre.in
Misc/NEWS.d/next/Build/2022-11-02-18-45-35.gh-issue-97731.zKpTlj.rst [new file with mode: 0644]

index 8ee44bfc0adb6ae259061c67f69436d15039d70e..51c31b94aea87643ea647d3fe5d932024b85ad09 100644 (file)
@@ -1898,7 +1898,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 (file)
index 0000000..46b1fb8
--- /dev/null
@@ -0,0 +1,2 @@
+Specify the full path to the source location for ``make docclean`` (needed for
+cross-builds).