make.bat 769 B

1234567891011121314151617181920212223242526272829303132333435
  1. @ECHO OFF
  2. pushd %~dp0
  3. REM Command file for Sphinx documentation
  4. if "%SPHINXBUILD%" == "" (
  5. set SPHINXBUILD=sphinx-build
  6. )
  7. set SOURCEDIR=source
  8. set BUILDDIR=build
  9. %SPHINXBUILD% >NUL 2>NUL
  10. if errorlevel 9009 (
  11. echo.
  12. echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
  13. echo.installed, then set the SPHINXBUILD environment variable to point
  14. echo.to the full path of the 'sphinx-build' executable. Alternatively you
  15. echo.may add the Sphinx directory to PATH.
  16. echo.
  17. echo.If you don't have Sphinx installed, grab it from
  18. echo.https://www.sphinx-doc.org/
  19. exit /b 1
  20. )
  21. if "%1" == "" goto help
  22. %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
  23. goto end
  24. :help
  25. %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
  26. :end
  27. popd