blob: 288cc9701f1312f3965464582368003e53c71352 [file] [log] [blame]
Paul Beesley653279b2019-01-23 15:39:39 +00001#
Chris Kayc25405d2025-03-10 09:24:34 +00002# Copyright (c) 2019-2025, Arm Limited. All rights reserved.
Paul Beesley653279b2019-01-23 15:39:39 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6# Minimal makefile for Sphinx documentation
7#
8
Chris Kay7c4e1ee2024-05-02 17:52:37 +00009include ../make_helpers/common.mk
10
Paul Beesley653279b2019-01-23 15:39:39 +000011# You can set these variables from the command line.
Sandrine Bailleux8b815a42020-04-17 14:19:20 +020012SPHINXOPTS = -W
Paul Beesley653279b2019-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 Kay7c4e1ee2024-05-02 17:52:37 +000020 $(q)$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Paul Beesley653279b2019-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 Kay7c4e1ee2024-05-02 17:52:37 +000026.DEFAULT: Makefile
Chris Kayc25405d2025-03-10 09:24:34 +000027 $(if $(host-poetry),$(q)poetry -q install --no-root --with=docs)
Chris Kay7c4e1ee2024-05-02 17:52:37 +000028 $(q)$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)