Makefile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|release*|build-moby|run-moby')
  2. .dapper:
  3. @echo Downloading dapper
  4. @curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
  5. @@chmod +x .dapper.tmp
  6. @./.dapper.tmp -v
  7. @mv .dapper.tmp .dapper
  8. $(TARGETS): .dapper
  9. ./.dapper $@
  10. trash: .dapper
  11. ./.dapper -m bind trash
  12. trash-keep: .dapper
  13. ./.dapper -m bind trash -k
  14. deps: trash
  15. build/initrd/.id: .dapper
  16. ./.dapper prepare
  17. run: build/initrd/.id .dapper
  18. ./.dapper -m bind build-target
  19. ./scripts/run
  20. build-moby:
  21. ./scripts/build-moby
  22. run-moby:
  23. ./scripts/run-moby
  24. shell-bind: .dapper
  25. ./.dapper -m bind -s
  26. clean:
  27. @./scripts/clean
  28. release: .dapper release-build
  29. release-build:
  30. mkdir -p dist
  31. ./.dapper release 2>&1 | tee dist/release.log
  32. rpi64: .dapper
  33. ./scripts/release-rpi64
  34. vmware: .dapper
  35. mkdir -p dist
  36. APPEND_SYSTEM_IMAGES="rancher/os-openvmtools:10.2.5-3" \
  37. ./.dapper release-vmware 2>&1 | tee dist/release.log
  38. hyperv: .dapper
  39. mkdir -p dist
  40. APPEND_SYSTEM_IMAGES="rancher/os-hypervvmtools:v4.14.85-rancher-1" \
  41. ./.dapper release-hyperv 2>&1 | tee dist/release.log
  42. azure: .dapper
  43. mkdir -p dist
  44. AZURE_SERVICE="true" \
  45. APPEND_SYSTEM_IMAGES="rancher/os-hypervvmtools:v4.14.85-rancher-1 rancher/os-waagent:v2.2.34-1" \
  46. ./.dapper release-azure 2>&1 | tee dist/release.log
  47. 4glte: .dapper
  48. mkdir -p dist
  49. APPEND_SYSTEM_IMAGES="rancher/os-modemmanager:v1.6.4-1" \
  50. ./.dapper release-4glte 2>&1 | tee dist/release.log
  51. proxmoxve: .dapper
  52. mkdir -p dist
  53. PROXMOXVE_SERVICE="true" \
  54. APPEND_SYSTEM_IMAGES="rancher/os-qemuguestagent:v2.8.1-2" \
  55. ./.dapper release-proxmoxve 2>&1 | tee dist/release.log
  56. pingan: .dapper
  57. mkdir -p dist
  58. APPEND_SYSTEM_IMAGES="rancher/os-pingan-amc:v0.0.6-1" \
  59. ./.dapper release-pingan 2>&1 | tee dist/release.log
  60. help:
  61. @./scripts/help
  62. .DEFAULT_GOAL := default
  63. .PHONY: $(TARGETS)