Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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