blob: 5bc24db79af1e9cb3fe144abd1d72e0b0793b273 [file] [log] [blame]
Paul Beesley22994f72019-01-23 15:39:39 +00001#
Yann Gautier9e983932023-03-17 13:49:05 +01002# Copyright (c) 2019-2023, ARM Limited. All rights reserved.
Paul Beesley22994f72019-01-23 15:39:39 +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.
Sandrine Bailleux39950802020-04-17 14:19:20 +020010SPHINXOPTS = -W
Paul Beesley22994f72019-01-23 15:39:39 +000011SPHINXBUILD = sphinx-build
12SPHINXPROJ = TrustedFirmware-A
13SOURCEDIR = .
14BUILDDIR = build
15
Yann Gautier9e983932023-03-17 13:49:05 +010016V ?= 0
17ifeq ($(V),0)
18 Q := @
19else
20 Q :=
21endif
22
Paul Beesley22994f72019-01-23 15:39:39 +000023# Put it first so that "make" without argument is like "make help".
24help:
Yann Gautier9e983932023-03-17 13:49:05 +010025 ${Q}$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Paul Beesley22994f72019-01-23 15:39:39 +000026
27.PHONY: help Makefile
28
29# Catch-all target: route all unknown targets to Sphinx using the new
30# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
31%: Makefile
Yann Gautier9e983932023-03-17 13:49:05 +010032 ${Q}$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)