-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Faster make v2 #3724
Faster make v2 #3724
Conversation
Signed-off-by: David Gageot <david@gageot.net>
This makes the Makefile faster for other targets. Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
We don’t need a target to go build for every GOOS since this done by `make cross`. Signed-off-by: David Gageot <david@gageot.net>
At release time, we build in a Docker container so the path is predictable. Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@@ -28,10 +28,11 @@ GCP_PROJECT ?= k8s-skaffold | |||
GKE_CLUSTER_NAME ?= integration-tests | |||
GKE_ZONE ?= us-central1-a | |||
|
|||
SUPPORTED_PLATFORMS := linux-$(GOARCH) darwin-$(GOARCH) windows-$(GOARCH).exe | |||
SUPPORTED_PLATFORMS = linux-$(GOARCH) darwin-$(GOARCH) windows-$(GOARCH).exe |
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.
After going through http://www.gnu.org/software/make/manual/make.html#Flavors,
I feel simply expanded variables and make more sense in this Makefile.
Is there a reason why you changed to "recursively expanded" ?
Testing notes:
Tested the cloudbuild.yaml.
|
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.
After testing described in #3724 (comment), LGTM!
Thank you!
This solves multiple slowness issues with the current Makefile:
make generate-statik
should make its inputs and outputs explicit so that we can avoid the cost of regeneratingThe net result is that
make
andmake install
will be faster to find out that nothing needs to be rebuilt and will be faster to rebuild changes to the Go code.@nkubala FYI, this is a fixed version of #3706