aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval@linaro.org>2020-09-11 13:13:13 -0500
committerLeonardo Sandoval <leonardo.sandoval@linaro.org>2020-09-25 08:58:24 -0500
commitc654018adeb890ee52fb0bd4d44d6e0c060e6160 (patch)
tree24abfd679aeb4a06d6a040704452b8e8bf68bcc6 /docs
parent642d8b60264aacefdcba56056d0181f1cff0d2a6 (diff)
downloadtf-a-tests-c654018adeb890ee52fb0bd4d44d6e0c060e6160.tar.gz
docs/Makefile: use conditional assignment on sphinx variables
If 'makefile' variables are expected to be overwritten by environment and/or command line, it is better to use conditional assignment ('?=') so it clearly indicates the variable intention and usage. Change-Id: I890f71fe4bb26b5777b49e9904a1489ca8fad498 Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/Makefile b/docs/Makefile
index a7083fb39..5691e6c74 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2019, ARM Limited. All rights reserved.
+# Copyright (c) 2019-2020, ARM Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -7,11 +7,11 @@
#
# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build
-SPHINXPROJ = TrustedFirmware-A Tests
-SOURCEDIR = .
-BUILDDIR = build
+SPHINXOPTS ?=
+SPHINXBUILD ?= sphinx-build
+SPHINXPROJ ?= TrustedFirmware-A Tests
+SOURCEDIR ?= $(CURDIR)
+BUILDDIR ?= build
# Put it first so that "make" without argument is like "make help".
help: