Makefile 830 B

123456789101112131415161718192021222324252627282930313233
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line, and also
  4. # from the environment for the first two.
  5. SPHINXOPTS ?=
  6. SPHINXBUILD ?= sphinx-build
  7. SOURCEDIR = source
  8. BUILDDIR = build
  9. HTTPSERVER ?= ../tools/scripts/nsdk_cli/httpserver.py
  10. # Put it first so that "make" without argument is like "make help".
  11. help:
  12. @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  13. .PHONY: help Makefile
  14. # Catch-all target: route all unknown targets to Sphinx using the new
  15. # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
  16. %: Makefile
  17. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  18. all:
  19. make html
  20. firefox:
  21. firefox build/html/index.html
  22. firefox_pdf:
  23. firefox build/latex/*.pdf
  24. preview:
  25. $(HTTPSERVER) -d build/html