make.bat 829 B

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