Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 1 | # |
Yann Gautier | 9e98393 | 2023-03-17 13:49:05 +0100 | [diff] [blame] | 2 | # Copyright (c) 2019-2023, ARM Limited. All rights reserved. |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # Minimal makefile for Sphinx documentation |
| 7 | # |
| 8 | |
| 9 | # You can set these variables from the command line. |
Sandrine Bailleux | 3995080 | 2020-04-17 14:19:20 +0200 | [diff] [blame] | 10 | SPHINXOPTS = -W |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 11 | SPHINXBUILD = sphinx-build |
| 12 | SPHINXPROJ = TrustedFirmware-A |
| 13 | SOURCEDIR = . |
| 14 | BUILDDIR = build |
| 15 | |
Yann Gautier | 9e98393 | 2023-03-17 13:49:05 +0100 | [diff] [blame] | 16 | V ?= 0 |
| 17 | ifeq ($(V),0) |
| 18 | Q := @ |
| 19 | else |
| 20 | Q := |
| 21 | endif |
| 22 | |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 23 | # Put it first so that "make" without argument is like "make help". |
| 24 | help: |
Yann Gautier | 9e98393 | 2023-03-17 13:49:05 +0100 | [diff] [blame] | 25 | ${Q}$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 26 | |
| 27 | .PHONY: help Makefile |
| 28 | |
| 29 | # Catch-all target: route all unknown targets to Sphinx using the new |
| 30 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |
| 31 | %: Makefile |
Yann Gautier | 9e98393 | 2023-03-17 13:49:05 +0100 | [diff] [blame] | 32 | ${Q}$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |