make.bat 1.3 KB

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