您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

73 行
1.4KB

  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. docs-server: docs
  19. echo "Docs are visible on http://localhost:9794/"
  20. cd _build/docs && \
  21. python -m http.server 9794
  22. docs-watch: docs
  23. +sh tools/docs-watch.sh
  24. docs-sync-server:
  25. mkdir -p _build/docs
  26. cd _build/docs && \
  27. browser-sync start --server \
  28. --reload-delay 300 \
  29. --watch **/*.html
  30. macos-ci:
  31. python3 -u tools/ci.py \
  32. -B download \
  33. -T tools/gcc-9.jsonc \
  34. -T2 tools/gcc-9.next.jsonc \
  35. linux-ci:
  36. python3 -u tools/ci.py \
  37. -B download \
  38. -T tools/gcc-9.jsonc \
  39. -T2 tools/gcc-9-static.jsonc
  40. nix-ci:
  41. python3 -u tools/ci.py \
  42. -B download \
  43. -T tools/gcc-9.jsonc
  44. vagrant-freebsd-ci:
  45. vagrant up freebsd11
  46. vagrant rsync
  47. vagrant ssh freebsd11 -c '\
  48. cd /vagrant && \
  49. python3.7 tools/ci.py \
  50. -B download \
  51. -T tools/freebsd-gcc-9.jsonc \
  52. -T2 tools/freebsd-gcc-9.next.jsonc \
  53. '
  54. vagrant scp freebsd11:/vagrant/_build/dds _build/dds-freebsd-x64
  55. vagrant halt
  56. site: docs
  57. rm -r -f -- _site/
  58. mkdir -p _site/
  59. cp site/index.html _site/
  60. cp -r _build/docs _site/
  61. echo "Site generated at _site/"