blob: 68c095812fc0e7e9a7107aefa91f4ff21f0e9d77 [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
Tamas Ban520040c2024-09-03 11:38:30 +020027 $(if $(host-poetry),$(q)poetry -q install --with=docs)
Chris Kay1870c722024-05-02 17:52:37 +000028 $(q)$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)