Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. include ../../hack/make-rules/Makefile.manifest
  15. REGISTRY ?= gcr.io/kubernetes-e2e-test-images
  16. GOARM=7
  17. QEMUVERSION=v2.9.1
  18. GOLANG_VERSION=1.12.9
  19. export
  20. ifndef WHAT
  21. $(error WHAT is a required variable, ex: make all WHAT=net)
  22. endif
  23. # Build code.
  24. #
  25. # Args:
  26. # WHAT: Directory names to build.
  27. #
  28. # Example:
  29. # make all WHAT=clusterapi-tester
  30. all: all-container
  31. all-container:
  32. ./image-util.sh build $(WHAT)
  33. all-push: all-container
  34. ./image-util.sh push $(WHAT)
  35. .PHONY: all all-push all-container