xref: /rk3399_ARM-atf/docs/Makefile (revision 8b815a4e03169e8b00c3345d31250513fb4cc953)
1653279b0SPaul Beesley#
2*8b815a4eSSandrine Bailleux# Copyright (c) 2019-2020, 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
9653279b0SPaul Beesley# You can set these variables from the command line.
10*8b815a4eSSandrine BailleuxSPHINXOPTS    = -W
11653279b0SPaul BeesleySPHINXBUILD   = sphinx-build
12653279b0SPaul BeesleySPHINXPROJ    = TrustedFirmware-A
13653279b0SPaul BeesleySOURCEDIR     = .
14653279b0SPaul BeesleyBUILDDIR      = build
15653279b0SPaul Beesley
16653279b0SPaul Beesley# Put it first so that "make" without argument is like "make help".
17653279b0SPaul Beesleyhelp:
18653279b0SPaul Beesley	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
19653279b0SPaul Beesley
20653279b0SPaul Beesley.PHONY: help Makefile
21653279b0SPaul Beesley
22653279b0SPaul Beesley# Catch-all target: route all unknown targets to Sphinx using the new
23653279b0SPaul Beesley# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
24653279b0SPaul Beesley%: Makefile
25653279b0SPaul Beesley	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
26