Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. PYTHON=python
  2. SPHINX_DIR="docs/"
  3. SPHINX_BUILDDIR="${SPHINX_DIR}/.build"
  4. README="README.rst"
  5. CONTRIBUTING="CONTRIBUTING.rst"
  6. CONFIGREF_SRC="docs/configuration.rst"
  7. README_SRC="docs/templates/readme.txt"
  8. CONTRIBUTING_SRC="docs/contributing.rst"
  9. SPHINX2RST="extra/release/sphinx-to-rst.py"
  10. WORKER_GRAPH_FULL="docs/images/worker_graph_full.png"
  11. SPHINX_HTMLDIR = "${SPHINX_BUILDDIR}/html"
  12. html:
  13. (cd "$(SPHINX_DIR)"; make html)
  14. mv "$(SPHINX_HTMLDIR)" Documentation
  15. docsclean:
  16. -rm -rf "$(SPHINX_BUILDDIR)"
  17. htmlclean:
  18. -rm -rf "$(SPHINX)"
  19. apicheck:
  20. extra/release/doc4allmods celery
  21. indexcheck:
  22. extra/release/verify-reference-index.sh
  23. configcheck:
  24. PYTHONPATH=. $(PYTHON) extra/release/verify_config_reference.py $(CONFIGREF_SRC)
  25. flakecheck:
  26. flake8 celery
  27. flakediag:
  28. -$(MAKE) flakecheck
  29. flakepluscheck:
  30. flakeplus celery --2.6
  31. flakeplusdiag:
  32. -$(MAKE) flakepluscheck
  33. flakes: flakediag flakeplusdiag
  34. readmeclean:
  35. -rm -f $(README)
  36. readmecheck:
  37. iconv -f ascii -t ascii $(README) >/dev/null
  38. $(README):
  39. $(PYTHON) $(SPHINX2RST) $(README_SRC) --ascii > $@
  40. readme: readmeclean $(README) readmecheck
  41. contributingclean:
  42. -rm -f CONTRIBUTING.rst
  43. $(CONTRIBUTING):
  44. $(PYTHON) $(SPHINX2RST) $(CONTRIBUTING_SRC) > $@
  45. contributing: contributingclean $(CONTRIBUTING)
  46. test:
  47. nosetests -xv celery.tests
  48. cov:
  49. nosetests -xv celery.tests --with-coverage --cover-html --cover-branch
  50. removepyc:
  51. -find . -type f -a \( -name "*.pyc" -o -name "*$$py.class" \) | xargs rm
  52. -find . -type d -name "__pycache__" | xargs rm -r
  53. $(WORKER_GRAPH_FULL):
  54. $(PYTHON) -m celery graph bootsteps | dot -Tpng -o $@
  55. graphclean:
  56. -rm -f $(WORKER_GRAPH_FULL)
  57. graph: graphclean $(WORKER_GRAPH_FULL)
  58. gitclean:
  59. git clean -xdn
  60. gitcleanforce:
  61. git clean -xdf
  62. distcheck: flakecheck apicheck indexcheck configcheck readmecheck test gitclean
  63. authorcheck:
  64. git shortlog -se | cut -f2 | extra/release/attribution.py
  65. dist: readme contributing docsclean gitcleanforce removepyc