Skip to content

gh-110704: Recommend distclean target over clean when source tree is not clean#112610

Open
SnoopJ wants to merge 1 commit intopython:mainfrom
SnoopJ:bugfix/gh110704-recommend-distclean-target
Open

gh-110704: Recommend distclean target over clean when source tree is not clean#112610
SnoopJ wants to merge 1 commit intopython:mainfrom
SnoopJ:bugfix/gh110704-recommend-distclean-target

Conversation

@SnoopJ
Copy link
Contributor

@SnoopJ SnoopJ commented Dec 1, 2023

Closes #110704

This changeset recommends using the distclean target over the clean target when the clean source tree check fails, as the latter does not remove files that will reliably fail the check if they are present (python$(BUILDEXE) in particular). The clobber target might work just as well, but distclean seems like the more user-legible change here.

Discovered while trying to run the build script introduced by #112473, I have not previously run into this problem before, but it had my scratching my head for a couple of minutes before I looked at the check target and realized the report was misleading me.

This change seems niche enough not to require a NEWS entry but I'm happy to write one if a maintainer disagrees.

@SnoopJ SnoopJ changed the title gh-112473: Recommend distclean target over clean when source tree is not clean gh-110704: Recommend distclean target over clean when source tree is not clean Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make clean is not enough for out-of-source builds

1 participant