123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- PROJ=celery
- PYTHON=python
- SPHINX_DIR="docs/"
- SPHINX_BUILDDIR="${SPHINX_DIR}/_build"
- README="README.rst"
- CONTRIBUTING="CONTRIBUTING.rst"
- CONFIGREF_SRC="docs/configuration.rst"
- README_SRC="docs/templates/readme.txt"
- CONTRIBUTING_SRC="docs/contributing.rst"
- SPHINX2RST="sphinx2rst"
- WORKER_GRAPH_FULL="docs/images/worker_graph_full.png"
- SPHINX_HTMLDIR = "${SPHINX_BUILDDIR}/html"
- html:
- (cd "$(SPHINX_DIR)"; $(MAKE) html)
- mv "$(SPHINX_HTMLDIR)" Documentation
- docsclean:
- -rm -rf "$(SPHINX_BUILDDIR)"
- htmlclean:
- -rm -rf "$(SPHINX)"
- apicheck:
- (cd "$(SPHINX_DIR)"; $(MAKE) apicheck)
- configcheck:
- (cd "$(SPHINX_DIR)"; $(MAKE) configcheck)
- flakecheck:
- flake8 "$(PROJ)"
- flakediag:
- -$(MAKE) flakecheck
- flakepluscheck:
- flakeplus --2.7 "$(PROJ)"
- flakeplusdiag:
- -$(MAKE) flakepluscheck
- flakes: flakediag flakeplusdiag
- readmeclean:
- -rm -f $(README)
- readmecheck:
- iconv -f ascii -t ascii $(README) >/dev/null
- $(README):
- $(SPHINX2RST) $(README_SRC) --ascii > $@
- readme: readmeclean $(README) readmecheck
- contributingclean:
- -rm -f CONTRIBUTING.rst
- $(CONTRIBUTING):
- $(SPHINX2RST) $(CONTRIBUTING_SRC) > $@
- contributing: contributingclean $(CONTRIBUTING)
- test:
- nosetests -xv "$(PROJ).tests"
- cov:
- nosetests -xv "$(PROJ)" --with-coverage --cover-html --cover-branch
- removepyc:
- -find . -type f -a \( -name "*.pyc" -o -name "*$$py.class" \) | xargs rm
- -find . -type d -name "__pycache__" | xargs rm -r
- $(WORKER_GRAPH_FULL):
- $(PYTHON) -m celery graph bootsteps | dot -Tpng -o $@
- graphclean:
- -rm -f $(WORKER_GRAPH_FULL)
- graph: graphclean $(WORKER_GRAPH_FULL)
- gitclean:
- git clean -xdn
- gitcleanforce:
- git clean -xdf
- tox: removepyc
- tox
- distcheck: flakecheck apicheck configcheck readmecheck test gitclean
- authorcheck:
- git shortlog -se | cut -f2 | extra/release/attribution.py
- dist: readme contributing docsclean gitcleanforce removepyc
|