xref: /oneTBB/doc/Makefile (revision e386960a)
1*e386960aSAlexandra#===============================================================================
2*e386960aSAlexandra# Copyright (C) 2022 Intel Corporation
3*e386960aSAlexandra#
4*e386960aSAlexandra# Licensed under the Apache License, Version 2.0 (the "License");
5*e386960aSAlexandra# you may not use this file except in compliance with the License.
6*e386960aSAlexandra# You may obtain a copy of the License at
7*e386960aSAlexandra#
8*e386960aSAlexandra#     http://www.apache.org/licenses/LICENSE-2.0
9*e386960aSAlexandra#
10*e386960aSAlexandra# Unless required by applicable law or agreed to in writing, software
11*e386960aSAlexandra# distributed under the License is distributed on an "AS IS" BASIS,
12*e386960aSAlexandra# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*e386960aSAlexandra# See the License for the specific language governing permissions and
14*e386960aSAlexandra# limitations under the License.
15*e386960aSAlexandra#===============================================================================
16*e386960aSAlexandra
17*e386960aSAlexandra# Minimal makefile for Sphinx documentation
18*e386960aSAlexandra#
19*e386960aSAlexandra
20*e386960aSAlexandra# You can set these variables from the command line, and also
21*e386960aSAlexandra# from the environment for the first two.
22*e386960aSAlexandraSPHINXOPTS    ?=
23*e386960aSAlexandraSPHINXBUILD   ?= sphinx-build
24*e386960aSAlexandraSOURCEDIR     = doc
25*e386960aSAlexandraBUILDDIR      = build
26*e386960aSAlexandra
27*e386960aSAlexandra# Put it first so that "make" without argument is like "make help".
28*e386960aSAlexandrahelp:
29*e386960aSAlexandra	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
30*e386960aSAlexandra
31*e386960aSAlexandra.PHONY: help Makefile
32*e386960aSAlexandra
33*e386960aSAlexandra# Catch-all target: route all unknown targets to Sphinx using the new
34*e386960aSAlexandra# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
35*e386960aSAlexandra%: Makefile
36*e386960aSAlexandra	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
37