You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 853 B

4 years ago
4 years ago
12345678910111213141516171819202122232425262728
  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 = .
  8. BUILDDIR = _build
  9. # Put it first so that "make" without argument is like "make help".
  10. help:
  11. $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  12. .PHONY: help Makefile
  13. pyg:
  14. @AUTOGL_BACKEND=pyg $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  15. dgl:
  16. @AUTOGL_BACKEND=dgl $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  17. html: Makefile pyg dgl
  18. # Catch-all target: route all unknown targets to Sphinx using the new
  19. # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
  20. %: Makefile
  21. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)