-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add ability in Make to build specific platforms #4458
Comments
Did you try The "cross" target is just a phony target building all of them. .PHONY: cross
cross: out/minikube-linux-$(GOARCH) out/minikube-darwin-amd64 out/minikube-windows-amd64.exe
|
I have not tried out that but what I did is that on my local, I just edited out the required executables in I was thinking if we could add 2 more targets in addition to cross to build specific platforms only? One for Windows and another one for Mac? |
We have three make targets today:
Do you need shorter aliases (phony targets, like "cross"), or what is the suggestion made here ? |
@afbjorklund - You got me. I would like to see target specific aliases (phony targets) as well like |
The linux: out/minikube-linux-$(GOARCH)
darwin: out/minikube-darwin-amd64
windows: out/minikube-windows-amd64.exe
|
The exact command to reproduce the issue:
make cross
The operating system version:
Windows 10 Enterprise
I am doing development on Windows in addition to
Bash for Windows
. As of now, runningmake cross
compiles the binaries for every platform i.e.Linux
,Mac
&Windows
. We need to have the ability to build for a targeted platform. For example for me, it doesn't make sense to build the Mac binaries as well while trying to build the Windows binaries to test.The text was updated successfully, but these errors were encountered: