blob: 9fd7d769d5931579bbf2b1a8c9a57c9ca5e28996 [file] [log] [blame]
Paul Beesley22994f72019-01-23 15:39:39 +00001#
Chris Kay1870c722024-05-02 17:52:37 +00002# Copyright (c) 2019-2024, 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
Chris Kay1870c722024-05-02 17:52:37 +00009include ../make_helpers/common.mk
10
Paul Beesley22994f72019-01-23 15:39:39 +000011# You can set these variables from the command line.
Sandrine Bailleux39950802020-04-17 14:19:20 +020012SPHINXOPTS = -W
Paul Beesley22994f72019-01-23 15:39:39 +000013SPHINXBUILD = sphinx-build
14SPHINXPROJ = TrustedFirmware-A
15SOURCEDIR = .
16BUILDDIR = build
17
18# Put it first so that "make" without argument is like "make help".
19help:
Chris Kay1870c722024-05-02 17:52:37 +000020 $(q)$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Paul Beesley22994f72019-01-23 15:39:39 +000021
22.PHONY: help Makefile
23
24# Catch-all target: route all unknown targets to Sphinx using the new
25# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Chris Kay1870c722024-05-02 17:52:37 +000026.DEFAULT: Makefile
27 $(q)$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)