-
-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Use bin/qmk if qmk is not in the path #12271
Conversation
Comparing "" and " " won't work. A new instance of make is used for build_keyboard.mk so it doesn't inherit QMK_BIN from the top level Makefile.
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.
Though I dont know how much fallback @skullydazed intended as part of #12109
The |
|
The
|
ifeq ($(shell which qmk),) | ||
QMK_BIN ?= bin/qmk | ||
else | ||
QMK_BIN ?= qmk | ||
endif |
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.
ifeq ($(shell which qmk),) | |
QMK_BIN ?= bin/qmk | |
else | |
QMK_BIN ?= qmk | |
endif | |
QMK_BIN ?= qmk |
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 do that it will not build after a clean.
Even when it is building, make complains once because it is still trying to run qmk
from the path:
make[1]: qmk: Command not found
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.
It's also inconsistent with the behaviour in Makefile
that automatically uses bin/qmk
if qmk
does not exist.
The change in
|
I dug into it a bit more and it looks like I missed passing |
Description
Builds don't work if qmk is not in the path.
Types of Changes
Checklist