blob: 04e3a70b8bc14e7de2ea0eef87d70d2872ac6abc [file] [log] [blame]
Imre Kisa21712e2019-10-08 12:56:59 +02001#
2# Copyright (c) 2019-2021, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Minimal makefile for Sphinx documentation
7#
8
9# You can set these variables from the command line, and also
10# from the environment for the first two.
11SPHINXOPTS ?=
12SPHINXBUILD ?= sphinx-build
13SOURCEDIR = .
14BUILDDIR = _build
15
16# Put it first so that "make" without argument is like "make help".
17help:
18 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
19
20.PHONY: help Makefile
21
22# Catch-all target: route all unknown targets to Sphinx using the new
23# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
24%: Makefile
25 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)