Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. all: linux windows macos freebsd openbsd netbsd solaris arm5 arm6 arm7 arm8 mips64 mips64le mips
  2. update:
  3. go list -f '{{ join .Imports "\n" }}' |egrep -v "^([a-zA-Z0-9\/]+$$)" |xargs -l1 -n1 go get -v -u
  4. clean:
  5. echo "cleaning"
  6. rm ./bin/*
  7. rmdir ./bin
  8. echo "The tar.xz archive file needs to be removed automatically"
  9. linux: linux64 linux86
  10. linux64:
  11. ./build.sh "linux" "amd64"
  12. linux86:
  13. ./build.sh "linux" "386"
  14. windows:
  15. ./build.sh "windows" "386"
  16. ./build.sh "windows" "amd64"
  17. macos:
  18. ./build.sh "darwin" "amd64"
  19. ./build.sh "darwin" "386"
  20. freebsd:
  21. ./build.sh "freebsd" "386"
  22. ./build.sh "freebsd" "amd64"
  23. openbsd:
  24. ./build.sh "openbsd" "386"
  25. ./build.sh "openbsd" "amd64"
  26. netbsd:
  27. ./build.sh "netbsd" "386"
  28. ./build.sh "netbsd" "amd64"
  29. solaris:
  30. ./build.sh "solaris" "amd64"
  31. arm5:
  32. ./build.sh "linux" "arm" "5"
  33. arm6:
  34. ./build.sh "linux" "arm" "6"
  35. arm7:
  36. ./build.sh "linux" "arm" "7"
  37. arm8:
  38. ./build.sh "linux" "arm64"
  39. mips:
  40. ./build.sh "linux" "mips"
  41. mips64:
  42. ./build.sh "linux" "mips64"
  43. mips64le:
  44. ./build.sh "linux" "mips64le"
  45. pack:
  46. ./pack.sh