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