Makefile 671 B

123456789101112131415161718192021222324252627282930313233343536
  1. PYTHON = python
  2. SETUP = $(PYTHON) setup.py
  3. PYDOCTOR ?= pydoctor
  4. ifeq ($(shell $(PYTHON) -c "import sys; print sys.version_info >= (2, 7)"),True)
  5. TESTRUNNER ?= unittest
  6. else
  7. TESTRUNNER ?= unittest2.__main__
  8. endif
  9. RUNTEST = PYTHONPATH=.:$(PYTHONPATH) $(PYTHON) -m $(TESTRUNNER)
  10. all: build
  11. doc:: pydoctor
  12. pydoctor::
  13. $(PYDOCTOR) --make-html -c dulwich.cfg
  14. build::
  15. $(SETUP) build
  16. $(SETUP) build_ext -i
  17. install::
  18. $(SETUP) install
  19. check:: build
  20. $(RUNTEST) dulwich.tests.test_suite
  21. check-nocompat:: build
  22. $(RUNTEST) dulwich.tests.nocompat_test_suite
  23. check-noextensions:: clean
  24. $(RUNTEST) dulwich.tests.test_suite
  25. clean::
  26. $(SETUP) clean --all
  27. rm -f dulwich/*.so