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.

5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
5 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. .SILENT:
  2. .PHONY: \
  3. docs docs-server docs-watch docs-sync-server nix-ci linux-ci macos-ci \
  4. vagrant-freebsd-ci site
  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.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. vagrant-freebsd-ci:
  47. vagrant up freebsd11
  48. vagrant rsync
  49. vagrant ssh freebsd11 -c '\
  50. cd /vagrant && \
  51. python3.7 tools/ci.py \
  52. -B download \
  53. -T tools/freebsd-gcc-10.jsonc \
  54. '
  55. vagrant scp freebsd11:/vagrant/_build/dds _build/dds-freebsd-x64
  56. vagrant halt
  57. site: docs
  58. rm -r -f -- _site/
  59. mkdir -p _site/
  60. cp site/index.html _site/
  61. cp -r _build/docs _site/
  62. echo "Site generated at _site/"