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