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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. caching\
  10. fstools\
  11. socket_protocol\
  12. state_machine\
  13. stringtools\
  14. stringtools.csp\
  15. stringtools.stp\
  16. task\
  17. tcp_socket\
  18. )
  19. # Put it first so that "make" without argument is like "make help".
  20. .PHONY: all help Makefile
  21. all: index.rst $(MODULES) html
  22. help:
  23. @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  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. html: Makefile
  27. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  28. clean: Makefile
  29. rm -f *.rst
  30. @for module in $(MODULES) ; do \
  31. if [ -d "$$module/_examples_" ]; then make --no-print-directory -C $$module/_examples_ clean; fi \
  32. done
  33. @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
  34. index.rst: Makefile
  35. @echo Generating $@
  36. @echo "Indices and tables\n==================\n\n* :ref:\`genindex\`\n* :ref:\`modindex\`\n* :ref:\`search\`\n" > $@
  37. @echo "Modules\n=======\n\n.. toctree::\n :maxdepth: 2\n" >> $@
  38. %: Makefile
  39. @echo "Preparing $@"
  40. @echo ".. automodule:: $@\n :members:" > $@.rst
  41. @if [ "$(findstring .,$@)" != "." ]; then \
  42. git -C $@ checkout master; \
  43. git -C $@ pull; \
  44. make -C $@/_examples_ all; \
  45. fi
  46. @echo " $@.rst" >> index.rst; \
  47. update:
  48. git pull
  49. git submodule init
  50. git submodule update
  51. git submodule foreach git checkout master
  52. git submodule foreach git pull
  53. copy:
  54. rsync -av --delete _build/html/ /data/webroot/pylib_docs/
  55. chown www-data.www-data -R /data/webroot/pylib_docs/