-
-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Fix the make all-keyboards command #422
Conversation
Unfortunately the supported targets, like "quick", "all", "clean", and so on has to be repeated two extra times, but this is the best I can do with my makefile skills.
|
||
all-keyboards-all: $(addsuffix -all,$(KEYBOARDS)) | ||
all-keyboards-quick: $(addsuffix -quick,$(KEYBOARDS)) | ||
all-keyboards-clean: $(addsuffix -clean,$(KEYBOARDS)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember my make-fu right, this should work:
all-keyboards-%: $(addsuffix -$*,${KEYBOARDS})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what I thought too, and I tried many variations of this yesterday, and now again, this is what I get
$ make all-keyboards-quick
make: *** No rule to make target 'all-keyboards-quick'. Stop.
If I do this instead though
all-keyboards-%:
echo $(addsuffix -$*,${KEYBOARDS})
It prints out the correct rule names, so the prerequisites pattern is right. I also tried adding the debug flag to make, and it didn't help me debug the problem either. But maybe someone with better makefile programming skills could?
Thanks for looking into those - let's merge this for now, and any improvements can be built upon it :) |
Mm. I know I can make this simple, will dive into make at some point and open a PR. Thanks for testing, @fredizzimo! And apologies for the noise. |
Unfortunately the supported targets, like "quick", "all", "clean", and so on has to be repeated two extra times, but this is the best I can do with my makefile skills.
* Update info.JSON to match QMK repo modification * Disabling extrakeys and mousekeys in vial rules.mk
Unfortunately the supported targets, like "quick", "all", "clean",and so on has to be repeated two extra times, but this is the best I can do with my makefile skills.