Skip to content
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

Target detection fails when the Makefile is using include directive #7

Open
rbarzic opened this issue Feb 18, 2022 · 2 comments
Open

Comments

@rbarzic
Copy link

rbarzic commented Feb 18, 2022

This is mentioned in http://stackoverflow.com/a/26339924/983746 entry used to defined makefile-executor-list-target-code.
Unfortunately, the workaround described in the StackOverflow entry can't be applied without changing the code in makefile-executor.el

@rbarzic
Copy link
Author

rbarzic commented Feb 18, 2022

Apparently, the suggestion from user artu-hnrq about using -f $(firstword $(MAKEFILE_LIST)) instead of -f $(lastword $(MAKEFILE_LIST)) may solve the issue

@fxble
Copy link

fxble commented Jul 14, 2023

I ran into the same issue recently. I used include directives as well as recursive calls of make to call makefiles in subdirectories. But I only got a subset of my targets displayed when executing makefile-executor-execute-project-target, for example. As suggested by @rbarzic, I replaced lastword with firstword and now everything works as expected.

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

No branches or pull requests

2 participants