blob: 2916921845b78f7f619aefe0cb47b3b42b984776 [file] [log] [blame]
Olivier Depreza3acd602023-05-22 12:10:42 +02001#
2# Copyright (c) 2023, ARM Limited. All rights reserved.
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.
10SPHINXOPTS = -W
11SPHINXBUILD = sphinx-build
12SPHINXPROJ = Hafnium
13SOURCEDIR = .
14BUILDDIR = build
15
16V ?= 0
17ifeq ($(V),0)
18 Q := @
19else
20 Q :=
21endif
22
23# Put it first so that "make" without argument is like "make help".
24help:
25 ${Q}$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
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
32 ${Q}$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)