You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 satır
1.7KB

  1. .SILENT:
  2. .PHONY: \
  3. docs docs-server docs-watch docs-sync-server nix-ci linux-ci macos-ci \
  4. vagrant-freebsd-ci site alpine-static-ci
  5. _invalid:
  6. echo "Specify a target name to execute"
  7. exit 1
  8. clean:
  9. rm -f -r -- $(shell find -name __pycache__ -type d)
  10. rm -f -r -- _build/ _prebuilt/
  11. docs:
  12. sphinx-build -b html \
  13. docs \
  14. _build/docs \
  15. -d _build/doctrees \
  16. -Wqanj8
  17. echo "Docs generated to _build/docs"
  18. hugo-docs:
  19. env GEN_FOR_HUGO=1 $(MAKE) docs
  20. docs-server: docs
  21. echo "Docs are visible on http://localhost:9794/"
  22. cd _build/docs && \
  23. python -m http.server 9794
  24. docs-watch: docs
  25. +sh tools/docs-watch.sh
  26. docs-sync-server:
  27. mkdir -p _build/docs
  28. cd _build/docs && \
  29. browser-sync start --server \
  30. --reload-delay 300 \
  31. --watch **/*.html
  32. macos-ci:
  33. python3 -u tools/ci.py \
  34. -B download \
  35. -T tools/gcc-9-rel-macos.jsonc
  36. mv _build/dds _build/dds-macos-x64
  37. linux-ci:
  38. python3 -u tools/ci.py \
  39. -B download \
  40. -T tools/gcc-9-static-rel.jsonc
  41. mv _build/dds _build/dds-linux-x64
  42. nix-ci:
  43. python3 -u tools/ci.py \
  44. -B download \
  45. -T tools/gcc-9-rel.jsonc
  46. alpine-static-ci:
  47. docker build -t dds-builder -f tools/Dockerfile.alpine tools/
  48. docker run \
  49. -t --rm \
  50. -u $(shell id -u) \
  51. -v $(PWD):/host -w /host \
  52. --privileged \
  53. dds-builder \
  54. make linux-ci
  55. vagrant-freebsd-ci:
  56. vagrant up freebsd11
  57. vagrant rsync
  58. vagrant ssh freebsd11 -c '\
  59. cd /vagrant && \
  60. python3.7 tools/ci.py \
  61. -B download \
  62. -T tools/freebsd-gcc-10.jsonc \
  63. '
  64. mkdir -p _build/
  65. vagrant scp freebsd11:/vagrant/_build/dds _build/dds-freebsd-x64
  66. vagrant halt
  67. site: docs
  68. rm -r -f -- _site/
  69. mkdir -p _site/
  70. cp site/index.html _site/
  71. cp -r _build/docs _site/
  72. echo "Site generated at _site/"