From 22bab74c8f5fa6d53ddb7e40baa4334d09331c0f Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 2 Nov 2022 12:34:22 -0700 Subject: 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. --- Makefile.pre.in | 2 +- Misc/NEWS.d/next/Build/2022-11-02-18-45-35.gh-issue-97731.zKpTlj.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Build/2022-11-02-18-45-35.gh-issue-97731.zKpTlj.rst diff --git a/Makefile.pre.in b/Makefile.pre.in index 9b35398..bae0ff0 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -2438,7 +2438,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 0000000..46b1fb8 --- /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). -- cgit v0.12