Makefile 828 B

12345678910111213141516171819202122232425262728
  1. #
  2. # Copyright (c) 2019-2024, Arm Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Minimal makefile for Sphinx documentation
  7. #
  8. include ../make_helpers/common.mk
  9. # You can set these variables from the command line.
  10. SPHINXOPTS = -W
  11. SPHINXBUILD = sphinx-build
  12. SPHINXPROJ = TrustedFirmware-A
  13. SOURCEDIR = .
  14. BUILDDIR = build
  15. # Put it first so that "make" without argument is like "make help".
  16. help:
  17. $(q)$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  18. .PHONY: help Makefile
  19. # Catch-all target: route all unknown targets to Sphinx using the new
  20. # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
  21. .DEFAULT: Makefile
  22. $(if $(host-poetry),$(q)poetry -q install --with=docs)
  23. $(q)$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)