Skip to content

Commit

Permalink
gh-103053: Fix make check-clean-src: check "python" program
Browse files Browse the repository at this point in the history
"make check-clean-src" now also checks if the "python" program is
found in the source directory: fail with an error if it does exist.
  • Loading branch information
vstinner committed Oct 6, 2023
1 parent 3c0f65e commit 99d707c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \
.PHONY: check-clean-src
check-clean-src:
@if test -n "$(VPATH)" -a \( \
-f "$(srcdir)/Programs/python.o" \
-f "$(srcdir)/$(BUILDPYTHON)" \
-o -f "$(srcdir)/Programs/python.o" \
-o -f "$(srcdir)\Python/frozen_modules/importlib._bootstrap.h" \
\); then \
echo "Error: The source directory ($(srcdir)) is not clean" ; \
Expand Down

0 comments on commit 99d707c

Please sign in to comment.