-
Notifications
You must be signed in to change notification settings - Fork 279
Makefile: Use ?= for initial variable definitions
#725
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
Conversation
|
Yeah, they don't allow being changed from the environment, but they do accept user input on the CLI. I do it all the time. I'm not opposed to the change but I am curious about why we should be taking these variables from the environment rather than the CLI? |
I happened to notice this shortcoming while trying out various Makefile targets in the following format: I tend to use the above format more often which I think is something we could provide support for without any harm. |
But would work, right? However, what I like about the change, is that I could enable caching and stuff in my env and don't have to explicitly type it every time. So I'm in. :-) Oh wait, the USE_CACHE is not part of this? Hmm, could you add that, @anoopcs9? 😬 |
Yes.
Sure. |
It looks like the initial definition for |
880586e to
6575eca
Compare
Oh right! I never bothered to try. 😅 |
ansiwen
left a comment
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.
I'm fine with this, but I'll let @phlogistonjohn approve.
phlogistonjohn
left a comment
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.
Works for me.
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
6575eca to
72a8a76
Compare
:= is not capable of accepting values(for variables) from execution environment. Therefore replace := with ?= for completeness. Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
72a8a76 to
6e217a8
Compare
:=is not capable of accepting values(for variables) from execution environment. Therefore replace:=with?=for completeness.