blob: 5691e6c74d54968b8e1b293ea1882ab8529d515b [file] [log] [blame]
Paul Beesley717bac42019-10-22 11:08:15 +00001#
Leonardo Sandovalc6540182020-09-11 13:13:13 -05002# Copyright (c) 2019-2020, ARM Limited. All rights reserved.
Paul Beesley717bac42019-10-22 11:08:15 +00003#
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.
Leonardo Sandovalc6540182020-09-11 13:13:13 -050010SPHINXOPTS ?=
11SPHINXBUILD ?= sphinx-build
12SPHINXPROJ ?= TrustedFirmware-A Tests
13SOURCEDIR ?= $(CURDIR)
14BUILDDIR ?= build
Paul Beesley717bac42019-10-22 11:08:15 +000015
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)