Skip to content

Commit 24075b3

Browse files
committed
Have a separate clean-jit-stencils make target
1 parent 3d969c6 commit 24075b3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile.pre.in

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3276,11 +3276,16 @@ clobber: clean
32763276
-rm -f python-config.py python-config
32773277
-rm -rf cross-build
32783278

3279+
# gh-141808: The JIT stencils are deliberately kept in make clean(-retain-profile)
3280+
.PHONY: clean-jit-stencils
3281+
clean-jit-stencils:
3282+
-rm -f jit_stencils*.h
3283+
32793284
# Make things extra clean, before making a distribution:
32803285
# remove all generated files, even Makefile[.pre]
32813286
# Keep configure and Python-ast.[ch], it's possible they can't be generated
32823287
.PHONY: distclean
3283-
distclean: clobber docclean
3288+
distclean: clobber docclean clean-jit-stencils
32843289
for file in $(srcdir)/Lib/test/data/* ; do \
32853290
if test "$$file" != "$(srcdir)/Lib/test/data/README"; then rm "$$file"; fi; \
32863291
done
@@ -3289,8 +3294,6 @@ distclean: clobber docclean
32893294
Modules/ld_so_aix Modules/python.exp Misc/python.pc \
32903295
Misc/python-embed.pc Misc/python-config.sh
32913296
-rm -f python*-gdb.py
3292-
# gh-141808: The JIT stencils are deliberately kept in make clean(-retain-profile)
3293-
-rm -f jit_stencils*.h
32943297
# Issue #28258: set LC_ALL to avoid issues with Estonian locale.
32953298
# Expansion is performed here by shell (spawned by make) itself before
32963299
# arguments are passed to find. So LC_ALL=C must be set as a separate

0 commit comments

Comments
 (0)