Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 2017 The Kubernetes Authors.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. REGISTRY ?= gcr.io/kubernetes-e2e-test-images
  15. GOARM ?= 7
  16. QEMUVERSION=v2.9.1
  17. GOLANG_VERSION=1.13.6
  18. export
  19. ifndef WHAT
  20. $(error WHAT is a required variable, ex: make all WHAT=net)
  21. endif
  22. # Build code.
  23. #
  24. # Args:
  25. # WHAT: Directory names to build.
  26. #
  27. # Example:
  28. # make all WHAT=clusterapi-tester
  29. all: all-container
  30. all-container:
  31. ./image-util.sh build $(WHAT)
  32. all-push: all-container
  33. ./image-util.sh push $(WHAT)
  34. .PHONY: all all-push all-container