xref: /rk3399_ARM-atf/docs/Makefile (revision 7c4e1eea61a32291a6640070418e07ab98b42442)
1653279b0SPaul Beesley#
2*7c4e1eeaSChris Kay# Copyright (c) 2019-2024, 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
9*7c4e1eeaSChris Kayinclude ../make_helpers/common.mk
10*7c4e1eeaSChris 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:
20*7c4e1eeaSChris 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).
26*7c4e1eeaSChris Kay.DEFAULT: Makefile
27*7c4e1eeaSChris Kay	$(q)$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
28