make.bat 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. :: Copyright 2025 Core Devices LLC
  2. ::
  3. :: Licensed under the Apache License, Version 2.0 (the "License");
  4. :: you may not use this file except in compliance with the License.
  5. :: You may obtain a copy of the License at
  6. ::
  7. :: http://www.apache.org/licenses/LICENSE-2.0
  8. ::
  9. :: Unless required by applicable law or agreed to in writing, software
  10. :: distributed under the License is distributed on an "AS IS" BASIS,
  11. :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. :: See the License for the specific language governing permissions and
  13. :: limitations under the License.
  14. @ECHO OFF
  15. pushd %~dp0
  16. REM Command file for Sphinx documentation
  17. if "%SPHINXBUILD%" == "" (
  18. set SPHINXBUILD=sphinx-build
  19. )
  20. set SOURCEDIR=.
  21. set BUILDDIR=_build
  22. %SPHINXBUILD% >NUL 2>NUL
  23. if errorlevel 9009 (
  24. echo.
  25. echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
  26. echo.installed, then set the SPHINXBUILD environment variable to point
  27. echo.to the full path of the 'sphinx-build' executable. Alternatively you
  28. echo.may add the Sphinx directory to PATH.
  29. echo.
  30. echo.If you don't have Sphinx installed, grab it from
  31. echo.https://www.sphinx-doc.org/
  32. exit /b 1
  33. )
  34. if "%1" == "" goto help
  35. %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
  36. goto end
  37. :help
  38. %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
  39. :end
  40. popd