Makefile 779 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Copyright (c) 2019-2023, ARM Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Minimal makefile for Sphinx documentation
  7. #
  8. # You can set these variables from the command line.
  9. SPHINXOPTS = -W
  10. SPHINXBUILD = sphinx-build
  11. SPHINXPROJ = TrustedFirmware-A
  12. SOURCEDIR = .
  13. BUILDDIR = build
  14. V ?= 0
  15. ifeq ($(V),0)
  16. Q := @
  17. else
  18. Q :=
  19. endif
  20. # Put it first so that "make" without argument is like "make help".
  21. help:
  22. ${Q}$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  23. .PHONY: help Makefile
  24. # Catch-all target: route all unknown targets to Sphinx using the new
  25. # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
  26. %: Makefile
  27. ${Q}$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)