Module Documentation
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Makefile 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Minimal makefile for Sphinx documentation
  2. #
  3. # You can set these variables from the command line.
  4. SPHINXOPTS =
  5. SPHINXBUILD = sphinx-build
  6. SOURCEDIR = .
  7. BUILDDIR = _build
  8. MODULES = $(sort \
  9. state_machine\
  10. stringtools\
  11. stringtools.csp\
  12. stringtools.stp\
  13. )
  14. # Put it first so that "make" without argument is like "make help".
  15. .PHONY: all help Makefile
  16. all: clean index.rst $(MODULES) html
  17. help:
  18. @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  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. html: Makefile
  22. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  23. clean: Makefile
  24. rm -f *.rst
  25. @for module in $(MODULES) ; do \
  26. if [ -d "$$module/_examples_" ]; then make --no-print-directory -C $$module/_examples_ clean; fi \
  27. #if [-d "$$module/_examples_" ]; then make --no-print-directory -C $$module/_examples_ clean; fi\
  28. done
  29. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  30. index.rst: Makefile
  31. @echo Generating $@
  32. @echo "Indices and tables\n==================\n\n* :ref:\`genindex\`\n* :ref:\`modindex\`\n* :ref:\`search\`\n" > $@
  33. @echo "Modules\n=======\n\n.. toctree::\n :maxdepth: 2\n" >> $@
  34. %: Makefile
  35. @echo "Preparing $@"
  36. @echo ".. automodule:: $@\n :members:" > $@.rst
  37. @if [ "$(findstring .,$@)" != "." ]; then \
  38. git -C $@ checkout master; \
  39. git -C $@ pull; \
  40. make -C $@/_examples_ clean all; \
  41. fi
  42. @echo " $@.rst" >> index.rst; \