3
0

Makefile 947 B

1234567891011121314151617181920212223242526272829303132
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line.
  4. SPHINXOPTS =
  5. SPHINXBUILD = sphinx-build
  6. SPHINXPROJ = NVIDIAAPEX
  7. SOURCEDIR = source
  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. gh-pages:
  13. git checkout gh-pages
  14. rm -rf build
  15. rm -rf source
  16. git checkout master -- .
  17. make html
  18. rm -rf ../_modules ../_sources ../_static
  19. mv -fv build/html/* ../
  20. rm -rf build
  21. git add -A
  22. git commit -m "Generated gh-pages for `git log master -1 --pretty=short --abbrev-commit`" && git push origin gh-pages ; git checkout master
  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. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)