Skip to content

Use firstword instead of lastword to locate current Makefile path #29

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

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

xxuejie
Copy link
Collaborator

@xxuejie xxuejie commented Feb 24, 2025

When include lines are used in Makefile, the newly included Makefile path will be appended to MAKEFILE_LIST. And using lastword to fetch current Makefile path would fail. This change alter the code to use firstword so as to fetch the top level Makefile path.

When `include` lines are used in Makefile, the newly included Makefile
path will be appended to MAKEFILE_LIST. And using `lastword` to fetch
current Makefile path would fail. This change alter the code to use
firstword so as to fetch the top level Makefile path.
@xxuejie xxuejie requested a review from XuJiandong February 24, 2025 05:20
@xxuejie xxuejie merged commit e186ad7 into main Feb 24, 2025
8 checks passed
@xxuejie xxuejie deleted the use-firstword branch February 24, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants