xref: /rk3399_ARM-atf/docs/Makefile (revision 5488b945d66450bdbc8e9a133dd776fc23452a8d)
1653279b0SPaul Beesley#
2*c25405d6SChris Kay# Copyright (c) 2019-2025, Arm Limited. All rights reserved.
3653279b0SPaul Beesley#
4653279b0SPaul Beesley# SPDX-License-Identifier: BSD-3-Clause
5653279b0SPaul Beesley#
6653279b0SPaul Beesley# Minimal makefile for Sphinx documentation
7653279b0SPaul Beesley#
8653279b0SPaul Beesley
97c4e1eeaSChris Kayinclude ../make_helpers/common.mk
107c4e1eeaSChris Kay
11653279b0SPaul Beesley# You can set these variables from the command line.
128b815a4eSSandrine BailleuxSPHINXOPTS    = -W
13653279b0SPaul BeesleySPHINXBUILD   = sphinx-build
14653279b0SPaul BeesleySPHINXPROJ    = TrustedFirmware-A
15653279b0SPaul BeesleySOURCEDIR     = .
16653279b0SPaul BeesleyBUILDDIR      = build
17653279b0SPaul Beesley
18653279b0SPaul Beesley# Put it first so that "make" without argument is like "make help".
19653279b0SPaul Beesleyhelp:
207c4e1eeaSChris Kay	$(q)$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21653279b0SPaul Beesley
22653279b0SPaul Beesley.PHONY: help Makefile
23653279b0SPaul Beesley
24653279b0SPaul Beesley# Catch-all target: route all unknown targets to Sphinx using the new
25653279b0SPaul Beesley# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
267c4e1eeaSChris Kay.DEFAULT: Makefile
27*c25405d6SChris Kay	$(if $(host-poetry),$(q)poetry -q install --no-root --with=docs)
287c4e1eeaSChris Kay	$(q)$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
29