Repository navigation
Make: evaluate MAKECMDGOALS and text functions whose arguments are known - #369
Merged
Merged
Conversation
uutils/coreutils builds in release only for `make install`: `ifneq (,$(filter install, $(MAKECMDGOALS)))` sets PROFILE?=release. MAKECMDGOALS was unset and `filter` was never evaluated, so the branch was held as possible and `make build` listed Release too. MAKECMDGOALS is now the goals the command names (none when it names none), settled as the command line's variables are. `filter`, `filter-out` (with `%` patterns), `findstring` and `strip` are evaluated once their arguments hold no reference left; one that still does stays as written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #369 +/- ##
=======================================
Coverage ? 99.72%
=======================================
Files ? 313
Lines ? 20005
Branches ? 2341
=======================================
Hits ? 19950
Misses ? 55
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #361 (its "related, smaller" item: evaluating Make's
$(filter …)andMAKECMDGOALS)uutils/coreutils builds in release only for
make install:MAKECMDGOALSwas unset andfilterwas never evaluated, so that branch was held as possible, andmake buildjobs listed Release as well as debug.MAKECMDGOALSis now the goals the command names (empty when it names none), settled the way the command line's variables are.filterandfilter-out(with%patterns),findstringandstripare evaluated once their arguments hold no reference. One that still holds a reference stays as written.Verified:
make buildjobs no longer list Release.🤖 Generated with Claude Code
https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt